|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.storage.io.AbstractVariableByteInput
public abstract class AbstractVariableByteInput
Abstract base class for implementations of VariableByteInput.
| Constructor Summary | |
|---|---|
AbstractVariableByteInput()
|
|
| Method Summary | |
|---|---|
abstract 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)
Copy the next numeric value from the input to the specified output stream. |
void |
copyTo(VariableByteOutputStream os,
int count)
Copy the count next numeric values from the input to the specified output stream. |
abstract int |
read()
Read a single byte and return as an int value. |
int |
read(byte[] data)
Fill the provided byte array with data from the input. |
int |
read(byte[] b,
int off,
int len)
|
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. |
String |
readUTF()
|
void |
release()
|
void |
skip(int count)
Read the following count numeric values from the input and drop them. |
void |
skipBytes(long count)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractVariableByteInput()
| Method Detail |
|---|
public abstract int available()
throws IOException
VariableByteInput
available in interface VariableByteInputIOException
public abstract int read()
throws IOException
VariableByteInput
read in interface VariableByteInputIOException
public byte readByte()
throws IOException
VariableByteInput
readByte in interface VariableByteInputIOException
public short readShort()
throws IOException
VariableByteInput
readShort in interface VariableByteInputIOException
public int readInt()
throws IOException
VariableByteInput
readInt in interface VariableByteInputIOException
public int readFixedInt()
throws IOException
readFixedInt in interface VariableByteInputIOException
public long readLong()
throws IOException
VariableByteInput
readLong in interface VariableByteInputIOException
public String readUTF()
throws IOException,
EOFException
readUTF in interface VariableByteInputIOException
EOFException
public void skip(int count)
throws IOException
VariableByteInput
skip in interface VariableByteInputIOException
public void skipBytes(long count)
throws IOException
skipBytes in interface VariableByteInputIOException
public int read(byte[] data)
throws IOException
VariableByteInput
read in interface VariableByteInputIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in interface VariableByteInputIOException
public void copyTo(VariableByteOutputStream os)
throws IOException
VariableByteInput
copyTo in interface VariableByteInputIOException
public void copyTo(VariableByteOutputStream os,
int count)
throws IOException
VariableByteInput
copyTo in interface VariableByteInputIOException
public void copyRaw(VariableByteOutputStream os,
int count)
throws IOException
copyRaw in interface VariableByteInputIOExceptionpublic void release()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||