|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.storage.io.AbstractVariableByteInput
org.exist.storage.io.VariableByteArrayInput
Implements VariableByteInput on top of a byte array.
| Constructor Summary | |
VariableByteArrayInput()
|
|
VariableByteArrayInput(byte[] data)
|
|
VariableByteArrayInput(byte[] data,
int offset,
int length)
|
|
| Method Summary | |
int |
available()
Returns a value > 0 if more bytes can be read from the input. |
void |
copyRaw(VariableByteOutputStream os,
int count)
|
void |
copyTo(VariableByteOutputStream os,
int count)
Copy the count next numeric values from the input to the specified output stream. |
void |
initialize(byte[] data,
int offset,
int length)
|
int |
read()
Read a single byte and return as an int value. |
byte |
readByte()
Read a single byte. |
int |
readFixedInt()
|
int |
readInt()
Read an integer value in variable byte encoding. |
long |
readLong()
Read a long value in variable byte encoding. |
short |
readShort()
Read a short value in variable byte encoding. |
java.lang.String |
readUTF()
|
void |
skip(int count)
Read the following count numeric values from the input and drop them. |
void |
skipBytes(long count)
|
| Methods inherited from class org.exist.storage.io.AbstractVariableByteInput |
copyTo, read, read, release |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VariableByteArrayInput()
public VariableByteArrayInput(byte[] data)
public VariableByteArrayInput(byte[] data,
int offset,
int length)
| Method Detail |
public void initialize(byte[] data,
int offset,
int length)
public byte readByte()
throws java.io.IOException,
java.io.EOFException
VariableByteInput
readByte in interface VariableByteInputreadByte in class AbstractVariableByteInputjava.io.IOException
java.io.EOFException
public int read()
throws java.io.IOException
VariableByteInput
read in interface VariableByteInputread in class AbstractVariableByteInputjava.io.IOException
public int available()
throws java.io.IOException
VariableByteInput
available in interface VariableByteInputavailable in class AbstractVariableByteInputjava.io.IOException
public short readShort()
throws java.io.IOException
VariableByteInput
readShort in interface VariableByteInputreadShort in class AbstractVariableByteInputjava.io.IOException
public int readInt()
throws java.io.IOException
VariableByteInput
readInt in interface VariableByteInputreadInt in class AbstractVariableByteInputjava.io.IOException
public int readFixedInt()
throws java.io.IOException
readFixedInt in interface VariableByteInputreadFixedInt in class AbstractVariableByteInputjava.io.IOException
public long readLong()
throws java.io.IOException
VariableByteInput
readLong in interface VariableByteInputreadLong in class AbstractVariableByteInputjava.io.IOException
public java.lang.String readUTF()
throws java.io.IOException,
java.io.EOFException
readUTF in interface VariableByteInputreadUTF in class AbstractVariableByteInputjava.io.IOException
java.io.EOFException
public void copyTo(VariableByteOutputStream os,
int count)
throws java.io.IOException
VariableByteInput
copyTo in interface VariableByteInputcopyTo in class AbstractVariableByteInputjava.io.IOException
public void copyRaw(VariableByteOutputStream os,
int count)
throws java.io.IOException
copyRaw in interface VariableByteInputcopyRaw in class AbstractVariableByteInputjava.io.IOException
public void skip(int count)
throws java.io.IOException
VariableByteInput
skip in interface VariableByteInputskip in class AbstractVariableByteInputjava.io.IOException
public void skipBytes(long count)
throws java.io.IOException
skipBytes in interface VariableByteInputskipBytes in class AbstractVariableByteInputjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||