org.apache.maven.wagon
Class InputStreamMock

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.maven.wagon.InputStreamMock
All Implemented Interfaces:
Closeable

public class InputStreamMock
extends InputStream

Version:
$Id: InputStreamMock.java 573459 2007-09-07 05:14:49Z brett $
Author:
Michal Maczka

Constructor Summary
InputStreamMock()
           
 
Method Summary
 void close()
           
 boolean isClosed()
           
 boolean isForcedError()
           
 int read()
           
 void setForcedError(boolean forcedError)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamMock

public InputStreamMock()
Method Detail

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class InputStream

isClosed

public boolean isClosed()
Returns:
Returns the closed.

isForcedError

public boolean isForcedError()
Returns:
Returns the forcedError.

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException
See Also:
InputStream.read()

setForcedError

public void setForcedError(boolean forcedError)
Parameters:
forcedError - The forcedError to set.


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.