public class InputStreamMock extends InputStream
Constructor and Description |
---|
InputStreamMock() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isClosed() |
boolean |
isForcedError() |
int |
read() |
void |
setForcedError(boolean forcedError) |
available, mark, markSupported, read, read, reset, skip
public InputStreamMock()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public boolean isClosed()
public boolean isForcedError()
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public void setForcedError(boolean forcedError)
forcedError
- The forcedError to set.Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.