Package net.fortuna.mstor.data
Class MessageInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.fortuna.mstor.data.MessageInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class MessageInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description MessageInputStream(ByteBuffer b)
MessageInputStream(ByteBuffer b, Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] bytes, int offset, int length)
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
MessageInputStream
public MessageInputStream(ByteBuffer b) throws CharacterCodingException
- Parameters:
b
-- Throws:
CharacterCodingException
-
MessageInputStream
public MessageInputStream(ByteBuffer b, Charset charset) throws CharacterCodingException
- Parameters:
b
-charset
-- Throws:
CharacterCodingException
-
-
Method Detail
-
read
public final int read()
- Specified by:
read
in classInputStream
-
read
public final int read(byte[] bytes, int offset, int length)
- Overrides:
read
in classInputStream
-
-