- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- com.aoapps.lang.io.AoByteArrayInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class AoByteArrayInputStream extends ByteArrayInputStream
Provides direct access to the internalbyte[].- Author:
- AO Industries, Inc.
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
-
Constructor Summary
Constructors Constructor Description AoByteArrayInputStream(byte[] buf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillFrom(DataInput in)voidfillFrom(DataInput in, int len)byte[]getInternalByteArray()Provides direct access to the internal byte[] to avoid unnecessary copying of the array.-
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
-
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes
-
-
-
-
Method Detail
-
getInternalByteArray
public byte[] getInternalByteArray()
Provides direct access to the internal byte[] to avoid unnecessary copying of the array.
-
fillFrom
public void fillFrom(DataInput in) throws IOException
- Throws:
IOException
-
fillFrom
public void fillFrom(DataInput in, int len) throws IOException
- Throws:
IOException
-
-