|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.jboss.marshalling.SimpleByteInput
org.jboss.marshalling.ByteInputStream
org.jboss.marshalling.SimpleDataInput
public class SimpleDataInput
Field Summary | |
---|---|
protected byte[] |
buffer
|
protected int |
limit
|
protected int |
position
|
Fields inherited from class org.jboss.marshalling.ByteInputStream |
---|
byteInput |
Constructor Summary | |
---|---|
SimpleDataInput(ByteInput byteInput)
|
|
SimpleDataInput(int bufferSize)
|
|
SimpleDataInput(int bufferSize,
ByteInput byteInput)
|
Method Summary | |
---|---|
int |
available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
void |
close()
|
protected void |
finish()
|
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Read some bytes from the input stream into the given array. |
int |
read(byte[] b,
int off,
int len)
Read some bytes from the input stream into the given array. |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
protected int |
readIntDirect()
|
String |
readLine()
|
long |
readLong()
|
protected long |
readLongDirect()
|
short |
readShort()
|
int |
readUnsignedByte()
|
protected int |
readUnsignedByteDirect()
|
int |
readUnsignedShort()
|
String |
readUTF()
|
long |
skip(long n)
Skips over and discards up to n bytes of data from this input stream. |
int |
skipBytes(int n)
|
protected void |
start(ByteInput byteInput)
|
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final byte[] buffer
protected int position
protected int limit
Constructor Detail |
---|
public SimpleDataInput(int bufferSize)
public SimpleDataInput(int bufferSize, ByteInput byteInput)
public SimpleDataInput(ByteInput byteInput)
Method Detail |
---|
public int read() throws IOException
read
in interface ByteInput
read
in class ByteInputStream
IOException
- if an error occurspublic int read(byte[] b) throws IOException
read
in interface ByteInput
read
in class ByteInputStream
b
- the destination array
IOException
- if an error occurspublic int read(byte[] b, int off, int len) throws IOException
read
in interface ByteInput
read
in class ByteInputStream
b
- the destination arrayoff
- the offset into the array into which data should be readlen
- the number of bytes to attempt to fill in the destination array
IOException
- if an error occurspublic long skip(long n) throws IOException
n
bytes of data from this input stream. If the end of stream is reached,
this method returns 0
in order to be consistent with InputStream.skip(long)
.
skip
in interface ByteInput
skip
in class ByteInputStream
n
- the number of bytes to attempt to skip
IOException
- if an error occurspublic int available() throws IOException
available
in interface ByteInput
available
in class ByteInputStream
IOException
- if an error occurspublic void readFully(byte[] b) throws IOException
readFully
in interface DataInput
IOException
public void readFully(byte[] b, int off, int len) throws IOException
readFully
in interface DataInput
IOException
public int skipBytes(int n) throws IOException
skipBytes
in interface DataInput
IOException
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
IOException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
IOException
public short readShort() throws IOException
readShort
in interface DataInput
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
IOException
protected int readUnsignedByteDirect() throws IOException
IOException
public char readChar() throws IOException
readChar
in interface DataInput
IOException
public int readInt() throws IOException
readInt
in interface DataInput
IOException
public long readLong() throws IOException
readLong
in interface DataInput
IOException
protected long readLongDirect() throws IOException
IOException
public float readFloat() throws IOException
readFloat
in interface DataInput
IOException
protected int readIntDirect() throws IOException
IOException
public double readDouble() throws IOException
readDouble
in interface DataInput
IOException
public String readLine() throws IOException
readLine
in interface DataInput
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
IOException
public void close() throws IOException
ByteInputStream
close
in interface Closeable
close
in class ByteInputStream
IOException
protected void start(ByteInput byteInput) throws IOException
IOException
protected void finish() throws IOException
IOException
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |