public class ExposedByteArrayInputStream extends ByteArrayInputStream
ByteArrayInputStream that allows accessing the entire internal buffer without copying.buf, count, mark, pos| Constructor and Description |
|---|
ExposedByteArrayInputStream(byte[] buf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
readAll()
Read all remaining bytes.
|
available, mark, markSupported, read, read, reset, skipreadpublic byte[] readAll()
throws IOException
IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class ByteArrayInputStream