@Internal public class ExposedByteArrayInputStream extends java.io.ByteArrayInputStream
ByteArrayInputStream that allows accessing the entire internal buffer without copying.| Constructor and Description |
|---|
ExposedByteArrayInputStream(byte[] buf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
readAll()
Read all remaining bytes.
|
public byte[] readAll()
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.ByteArrayInputStream