public class TestableByteArrayInputStream extends ByteArrayInputStreamBeta 
 Testable extension for a byte array input stream.
Inheritance
java.lang.Object > java.io.InputStream > ByteArrayInputStream > TestableByteArrayInputStreamConstructors
TestableByteArrayInputStream(byte[] buf)
public TestableByteArrayInputStream(byte[] buf)| Parameter | |
|---|---|
| Name | Description | 
| buf | byte[]buffer | 
TestableByteArrayInputStream(byte[] buf, int offset, int length)
public TestableByteArrayInputStream(byte[] buf, int offset, int length)| Parameters | |
|---|---|
| Name | Description | 
| buf | byte[]buffer | 
| offset | intoffset in the buffer of the first byte to read | 
| length | intmaximum number of bytes to read from the buffer | 
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 | |