Package arc.util.io
Class ReusableByteInStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
arc.util.io.ReusableByteInStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A
ByteArrayInputStream
that can have its content bytes reset.-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
-
Method Summary
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, skipNBytes
-
Constructor Details
-
ReusableByteInStream
public ReusableByteInStream()setBytes(byte[])
must be called before this stream can be used.
-
-
Method Details
-
position
public int position() -
setBytes
public void setBytes(byte[] bytes) -
setBytes
public void setBytes(byte[] bytes, int offset, int length)
-