Package org.nustaq.serialization
Interface FSTDecoder
- All Known Implementing Classes:
FSTBytezDecoder
,FSTJsonDecoder
,FSTMinBinDecoder
,FSTStreamDecoder
public interface FSTDecoder
Created by ruedi on 27.03.14.
-
Method Summary
Modifier and TypeMethodDescriptionint
classForName
(String name) void
close()
coerceElement
(Class arrType, Object value) void
void
endFieldReading
(Object newObj) only called when reading named fieldsint
ensureReadAhead
(int bytes) byte[]
int
int
boolean
inArray()
return wether current stream is reading an object or sequence currently makes sense for MinBin and JSon only, only Json serializer actually has implemented itboolean
boolean
void
moveTo
(int position) void
pushBack
(int bytes) void
readArrayEnd
(FSTClazzInfo clzSerInfo) void
byte
char
double
float
int
readFInt()
void
readFIntArr
(int len, int[] arr) long
readFPrimitiveArray
(Object array, Class componentType, int len) short
int
void
byte
void
readPlainBytes
(byte[] b, int off, int len) int
int
void
registerClass
(Class possible) void
reset()
void
resetToCopyOf
(byte[] bytes, int off, int len) void
resetWith
(byte[] bytes, int len) void
setConf
(FSTConfiguration conf) void
void
skip
(int n) void
startFieldReading
(Object newObj) quirks for json unknown decoding.
-
Method Details
-
setConf
-
readStringUTF
- Throws:
IOException
-
readStringAsc
- Throws:
IOException
-
readFPrimitiveArray
-
readFIntArr
- Throws:
IOException
-
readFInt
- Throws:
IOException
-
readFDouble
- Throws:
IOException
-
readFFloat
- Throws:
IOException
-
readFByte
- Throws:
IOException
-
readIntByte
- Throws:
IOException
-
readFLong
- Throws:
IOException
-
readFChar
- Throws:
IOException
-
readFShort
- Throws:
IOException
-
readPlainInt
- Throws:
IOException
-
getBuffer
byte[] getBuffer() -
getInputPos
int getInputPos() -
moveTo
void moveTo(int position) -
setInputStream
-
ensureReadAhead
int ensureReadAhead(int bytes) -
reset
void reset() -
resetToCopyOf
void resetToCopyOf(byte[] bytes, int off, int len) -
resetWith
void resetWith(byte[] bytes, int len) -
readClass
- Throws:
IOException
ClassNotFoundException
-
classForName
- Throws:
ClassNotFoundException
-
registerClass
-
close
void close() -
skip
void skip(int n) -
readPlainBytes
void readPlainBytes(byte[] b, int off, int len) -
readObjectHeaderTag
- Throws:
IOException
-
getObjectHeaderLen
int getObjectHeaderLen() -
isMapBased
boolean isMapBased() -
getDirectObject
Object getDirectObject() -
consumeEndMarker
void consumeEndMarker() -
readArrayHeader
-
readExternalEnd
void readExternalEnd() -
isEndMarker
-
readVersionTag
- Throws:
IOException
-
pushBack
void pushBack(int bytes) -
readArrayEnd
-
readObjectEnd
void readObjectEnd() -
coerceElement
-
available
int available()- Returns:
- a value > 0 if more bytes are available
-
inArray
boolean inArray()return wether current stream is reading an object or sequence currently makes sense for MinBin and JSon only, only Json serializer actually has implemented it- Returns:
-
startFieldReading
quirks for json unknown decoding. Need a hook to set original classname only called when reading named fields- Parameters:
newObj
-
-
endFieldReading
only called when reading named fields- Parameters:
newObj
-
-