Package org.apache.lucene.util.encoding
Class VInt8IntDecoder
- java.lang.Object
-
- org.apache.lucene.util.encoding.IntDecoder
-
- org.apache.lucene.util.encoding.VInt8IntDecoder
-
public class VInt8IntDecoder extends IntDecoder
AnIntDecoderwhich can decode values encoded byVInt8IntEncoder.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.util.encoding.IntDecoder
EOS, in
-
-
Constructor Summary
Constructors Constructor Description VInt8IntDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdecode()Decodes data received from the input stream, and returns one decoded integer.StringtoString()-
Methods inherited from class org.apache.lucene.util.encoding.IntDecoder
reInit
-
-
-
-
Method Detail
-
decode
public long decode() throws IOExceptionDescription copied from class:IntDecoderDecodes data received from the input stream, and returns one decoded integer. If end of stream is reached,IntDecoder.EOSis returned.- Specified by:
decodein classIntDecoder- Returns:
- one decoded integer as long or
IntDecoder.EOSif end-of-stream reached. - Throws:
IOException- if an I/O error occurs
-
-