java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.aoapps.lang.io.AoByteArrayInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Provides direct access to the internal
byte[]
.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
byte[]
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
-
Constructor Details
-
AoByteArrayInputStream
public AoByteArrayInputStream(byte[] buf)
-
-
Method Details
-
getInternalByteArray
public byte[] getInternalByteArray()Provides direct access to the internal byte[] to avoid unnecessary copying of the array. -
fillFrom
- Throws:
IOException
-
fillFrom
- Throws:
IOException
-