Package org.fressian.impl
Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
org.fressian.impl.ByteBufferInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
InputStream
over a ByteBuffer
. Duplicates the
buffer on construction in order to maintain its own cursor.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
close, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferInputStream
-
-
Method Details
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-