public class TestableByteArrayOutputStream extends ByteArrayOutputStreamBeta
Testable extension for a byte array output stream.
Inheritance
java.lang.Object > java.io.OutputStream > ByteArrayOutputStream > TestableByteArrayOutputStreamConstructors
TestableByteArrayOutputStream()
public TestableByteArrayOutputStream()Methods
close()
public void close()
Overriding is supported, but overriding method must call the super implementation.
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
getBuffer()
public final byte[] getBuffer()Returns the written buffer value as a modifiable byte array.
| Returns | |
|---|---|
| Type | Description |
byte[] |
|
isClosed()
public final boolean isClosed()Returns whether the output stream has been closed.
| Returns | |
|---|---|
| Type | Description |
boolean |
|