Package com.indeed.util.io
Class IndexableByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- com.indeed.util.io.IndexableByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class IndexableByteArrayOutputStream extends java.io.ByteArrayOutputStreamcan directly examine the internal byte[] backing this stream, use in conjuction withByteArrayOutputStream.size()to get the logical length of the internal byte[] buffer
-
-
Constructor Summary
Constructors Constructor Description IndexableByteArrayOutputStream(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]unsafeByteArrayView()
-