Package kilim.nio
Class ExposedBais
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- kilim.nio.ExposedBais
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ExposedBais extends java.io.ByteArrayInputStreamA hack that exposes the bytearray inside the ByteArrayInputStream. This is to avoid copying the byte array when toByteArray() is called
-
-
Constructor Summary
Constructors Constructor Description ExposedBais(byte[] buf)ExposedBais(byte[] buf, int offset, int length)ExposedBais(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetCount(int n)byte[]toByteArray()
-