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, write
public OutputStreamMock()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
public void write(int b) throws IOException
write
in class OutputStream
IOException
OutputStream.write(int)
public boolean isClosed()
public boolean isForcedError()
public void setForcedError(boolean forcedError)
forcedError
- The forcedError to set.Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.