|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.encoding.IntDecoder
public abstract class IntDecoder
Decodes integers from a set InputStream. For re-usability, the
decoder's input stream can be set by (reInit(InputStream)).
By design, Decoders are NOT thread-safe.
| Field Summary | |
|---|---|
static long |
EOS
A special long value which is used to indicate end-of-stream has reached. |
protected InputStream |
in
Input stream from which the encoded bytes are read |
| Constructor Summary | |
|---|---|
IntDecoder()
|
|
| Method Summary | |
|---|---|
abstract long |
decode()
Decodes data received from the input stream, and returns one decoded integer. |
void |
reInit(InputStream in)
Sets the input stream from which the encoded data is read. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long EOS
protected InputStream in
| Constructor Detail |
|---|
public IntDecoder()
| Method Detail |
|---|
public void reInit(InputStream in)
public abstract long decode()
throws IOException
EOS is returned.
EOS if end-of-stream
reached.
IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||