org.apache.maven.wagon
Class InputStreamMock
java.lang.Object
java.io.InputStream
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamMock
public InputStreamMock()
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.