-
- All Known Subinterfaces:
ComparableTokenDecoder
- All Known Implementing Classes:
AbstractTokenDecoder,SparseRecordDecoder
public interface TokenDecoderConverts binary encodings of tokens into token values. Implementations should extendAbstractTokenDecoderrather than implementing this interface directly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecode(BinaryReader source, boolean skip)Decodes the encoding at the current position of the reader and stores the value in the current target.voiddecodeField(BinaryReader source, int fieldIndex, boolean skip)Decodes the encoding at the current position of the reader and stores the value in the current target.voidsetTarget(TokenSettable buffer)Designates the current target for decoding operations.
-
-
-
Method Detail
-
setTarget
void setTarget(TokenSettable buffer)
Designates the current target for decoding operations.- Parameters:
buffer- the target buffer into which to decode.
-
decode
void decode(BinaryReader source, boolean skip)
Decodes the encoding at the current position of the reader and stores the value in the current target. The reader is advanced past the encoding as a result.- Parameters:
source- the reader containing the encodingskip- a value of true means decode the bytes but don't set on target
-
decodeField
void decodeField(BinaryReader source, int fieldIndex, boolean skip)
Decodes the encoding at the current position of the reader and stores the value in the current target. The reader is advanced past the encoding as a result.- Parameters:
source- the reader containing the encodingfieldIndex- the index of the field being decodedskip- a value of true means decode the bytes but don't set on target
-
-