public class OutputStreamMock extends OutputStream
| Constructor and Description |
|---|
OutputStreamMock() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
boolean |
isForcedError() |
void |
setForcedError(boolean forcedError) |
void |
write(int b) |
flush, write, writepublic OutputStreamMock()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void write(int b) throws IOException
write in class OutputStreamIOExceptionOutputStream.write(int)public boolean isClosed()
public boolean isForcedError()
public void setForcedError(boolean forcedError)
forcedError - The forcedError to set.Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.