@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.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.ByteArrayInputStream