net.fortuna.mstor.data
Class MessageInputStream
java.lang.Object
java.io.InputStream
net.fortuna.mstor.data.MessageInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class MessageInputStream
- extends java.io.InputStream
- Author:
- Ben
$Id$
Created on 03/03/2008
Method Summary |
int |
read()
|
int |
read(byte[] bytes,
int offset,
int length)
|
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageInputStream
public MessageInputStream(java.nio.ByteBuffer b)
throws java.nio.charset.CharacterCodingException
- Parameters:
buffer
-
- Throws:
java.nio.charset.CharacterCodingException
MessageInputStream
public MessageInputStream(java.nio.ByteBuffer b,
java.nio.charset.Charset charset)
throws java.nio.charset.CharacterCodingException
- Parameters:
b
- charset
-
- Throws:
java.nio.charset.CharacterCodingException
read
public final int read()
throws java.io.IOException
-
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public final int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
-
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
Copyright © 2004-2011 Micronode. All Rights Reserved.