org.exist.storage.io
Class VariableByteInputStream
java.lang.Object
org.exist.storage.io.AbstractVariableByteInput
org.exist.storage.io.VariableByteInputStream
- All Implemented Interfaces:
- VariableByteInput
public class VariableByteInputStream
- extends AbstractVariableByteInput
Implements VariableByteInput on top of an InputStream.
- Author:
- wolf
Method Summary |
int |
available()
Returns a value > 0 if more bytes can be read
from the input. |
int |
read()
Read a single byte and return as an int value. |
Methods inherited from class org.exist.storage.io.AbstractVariableByteInput |
copyRaw, copyTo, copyTo, read, read, readByte, readFixedInt, readInt, readLong, readShort, readUTF, release, skip, skipBytes |
VariableByteInputStream
public VariableByteInputStream(InputStream is)
read
public int read()
throws IOException
- Description copied from interface:
VariableByteInput
- Read a single byte and return as an int value.
- Specified by:
read
in interface VariableByteInput
- Specified by:
read
in class AbstractVariableByteInput
- Returns:
- the byte value as int or -1 if no more bytes are available.
- Throws:
IOException
available
public int available()
throws IOException
- Description copied from interface:
VariableByteInput
- Returns a value > 0 if more bytes can be read
from the input.
- Specified by:
available
in interface VariableByteInput
- Specified by:
available
in class AbstractVariableByteInput
- Throws:
IOException
Copyright (C) Wolfgang Meier. All rights reserved.