Class ByteBufferInputStream
java.lang.Object
java.io.InputStream
org.wildfly.clustering.marshalling.ByteBufferInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
An input stream for reading a byte buffer.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferInputStream(ByteBuffer buffer) Constructs an input stream for reading a byte buffer. -
Method Summary
Methods inherited from class InputStream
close, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ByteBufferInputStream
Constructs an input stream for reading a byte buffer.- Parameters:
buffer- a byte buffer
-
-
Method Details
-
read
public int read()- Specified by:
readin classInputStream
-
read
public int read(byte[] bytes, int offset, int length) - Overrides:
readin classInputStream
-
available
public int available()- Overrides:
availablein classInputStream
-
skip
public long skip(long bytes) - Overrides:
skipin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
public void reset()- Overrides:
resetin classInputStream
-