- java.lang.Object
- 
- com.pervasive.datarush.encoding.binary.AbstractTokenDecoder
 
- 
- All Implemented Interfaces:
- TokenDecoder
 - Direct Known Subclasses:
- SparseRecordDecoder
 
 public abstract class AbstractTokenDecoder extends Object implements TokenDecoder Base class for TokenEncoders
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractTokenDecoder()Initializes a new decoder.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddecodeField(BinaryReader source, int fieldIndex, boolean skip)This implementation delegates toTokenDecoder.decode(BinaryReader, boolean).protected abstract voiddoTargetUpdated(TokenSettable target)Sets the target buffer for decoding.protected TokenSettablegetTarget()Returns the current target held by this decoder.voidsetTarget(TokenSettable target)This implementation sets the target variable and invokes the methoddoTargetUpdated(TokenSettable).- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.pervasive.datarush.encoding.TokenDecoderdecode
 
- 
 
- 
- 
- 
Method Detail- 
setTargetpublic final void setTarget(TokenSettable target) This implementation sets the target variable and invokes the methoddoTargetUpdated(TokenSettable).- Specified by:
- setTargetin interface- TokenDecoder
- Parameters:
- target- the target buffer into which to decode.
 
 - 
decodeFieldpublic void decodeField(BinaryReader source, int fieldIndex, boolean skip) This implementation delegates toTokenDecoder.decode(BinaryReader, boolean). Implementations that require field-specific handling should override this method instead.- Specified by:
- decodeFieldin interface- TokenDecoder
- Parameters:
- source- the reader containing the encoding
- fieldIndex- the index of the field being decoded
- skip- a value of true means decode the bytes but don't set on target
 
 - 
getTargetprotected final TokenSettable getTarget() Returns the current target held by this decoder.- Returns:
- the current target held by this decoder.
 
 - 
doTargetUpdatedprotected abstract void doTargetUpdated(TokenSettable target) Sets the target buffer for decoding. Invoked when the target is initially set or updated.- Parameters:
- target- the buffer into which decoded valued are written
 
 
- 
 
-