public class FSTJsonDecoder extends Object implements FSTDecoder
| Modifier and Type | Field and Description |
|---|---|
protected FSTConfiguration |
conf |
protected com.fasterxml.jackson.core.JsonFactory |
fac |
protected FSTInputStream |
fstInput |
protected com.fasterxml.jackson.core.JsonParser |
input |
protected String |
unknownFallbackReadFieldName |
| Constructor and Description |
|---|
FSTJsonDecoder(FSTConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
Class |
classForName(String name) |
void |
close() |
Object |
coerceElement(Class arrType,
Object value) |
void |
consumeEndMarker() |
void |
createParser() |
int |
ensureReadAhead(int bytes) |
byte[] |
getBuffer() |
Object |
getDirectObject() |
int |
getInputPos() |
int |
getObjectHeaderLen() |
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
|
boolean |
isEndMarker(String s) |
boolean |
isMapBased() |
void |
moveTo(int position) |
void |
pushBack(int bytes) |
void |
readArrayEnd(FSTClazzInfo clzSerInfo) |
Object |
readArrayHeader() |
FSTClazzInfo |
readClass() |
void |
readExternalEnd() |
byte |
readFByte() |
char |
readFChar() |
double |
readFDouble() |
float |
readFFloat() |
int |
readFInt() |
void |
readFIntArr(int len,
int[] arr) |
long |
readFLong() |
Object |
readFPrimitiveArray(Object array,
Class componentType,
int len) |
short |
readFShort() |
int |
readIntByte() |
List |
readJSonArr2List(List arrayTokens) |
void |
readObjectEnd() |
byte |
readObjectHeaderTag() |
void |
readPlainBytes(byte[] b,
int off,
int len) |
int |
readPlainInt() |
String |
readStringAsc() |
String |
readStringUTF() |
int |
readVersionTag() |
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 |
setInputStream(InputStream in) |
void |
skip(int n) |
void |
startFieldReading(Object newObj)
quirks for json unknown decoding.
|
protected FSTConfiguration conf
protected com.fasterxml.jackson.core.JsonParser input
protected com.fasterxml.jackson.core.JsonFactory fac
protected FSTInputStream fstInput
protected String unknownFallbackReadFieldName
public FSTJsonDecoder(FSTConfiguration conf)
public void setConf(FSTConfiguration conf)
setConf in interface FSTDecoderpublic String readStringUTF() throws IOException
readStringUTF in interface FSTDecoderIOExceptionpublic String readStringAsc() throws IOException
readStringAsc in interface FSTDecoderIOExceptionpublic Object readFPrimitiveArray(Object array, Class componentType, int len)
readFPrimitiveArray in interface FSTDecoderpublic void readFIntArr(int len,
int[] arr)
throws IOException
readFIntArr in interface FSTDecoderIOExceptionpublic int readFInt()
throws IOException
readFInt in interface FSTDecoderIOExceptionpublic double readFDouble()
throws IOException
readFDouble in interface FSTDecoderIOExceptionpublic float readFFloat()
throws IOException
readFFloat in interface FSTDecoderIOExceptionpublic byte readFByte()
throws IOException
readFByte in interface FSTDecoderIOExceptionpublic int readIntByte()
throws IOException
readIntByte in interface FSTDecoderIOExceptionpublic long readFLong()
throws IOException
readFLong in interface FSTDecoderIOExceptionpublic char readFChar()
throws IOException
readFChar in interface FSTDecoderIOExceptionpublic short readFShort()
throws IOException
readFShort in interface FSTDecoderIOExceptionpublic int readPlainInt()
throws IOException
readPlainInt in interface FSTDecoderIOExceptionpublic byte[] getBuffer()
getBuffer in interface FSTDecoderpublic int getInputPos()
getInputPos in interface FSTDecoderpublic void moveTo(int position)
moveTo in interface FSTDecoderpublic void setInputStream(InputStream in)
setInputStream in interface FSTDecoderpublic int ensureReadAhead(int bytes)
ensureReadAhead in interface FSTDecoderpublic void reset()
reset in interface FSTDecoderpublic void resetToCopyOf(byte[] bytes,
int off,
int len)
resetToCopyOf in interface FSTDecoderpublic void createParser()
throws IOException
IOExceptionpublic void resetWith(byte[] bytes,
int len)
resetWith in interface FSTDecoderpublic int getObjectHeaderLen()
getObjectHeaderLen in interface FSTDecoderpublic byte readObjectHeaderTag()
throws IOException
readObjectHeaderTag in interface FSTDecoderIOExceptionpublic List readJSonArr2List(List arrayTokens) throws IOException
IOExceptionpublic Object getDirectObject()
getDirectObject in interface FSTDecoderpublic FSTClazzInfo readClass() throws IOException, ClassNotFoundException
readClass in interface FSTDecoderIOExceptionClassNotFoundExceptionpublic Class classForName(String name) throws ClassNotFoundException
classForName in interface FSTDecoderClassNotFoundExceptionpublic void registerClass(Class possible)
registerClass in interface FSTDecoderpublic void close()
close in interface FSTDecoderpublic void skip(int n)
skip in interface FSTDecoderpublic void readPlainBytes(byte[] b,
int off,
int len)
readPlainBytes in interface FSTDecoderpublic boolean isMapBased()
isMapBased in interface FSTDecoderpublic void consumeEndMarker()
consumeEndMarker in interface FSTDecoderpublic Object readArrayHeader() throws Exception
readArrayHeader in interface FSTDecoderExceptionpublic void readExternalEnd()
readExternalEnd in interface FSTDecoderpublic boolean isEndMarker(String s)
isEndMarker in interface FSTDecoderpublic int readVersionTag()
throws IOException
readVersionTag in interface FSTDecoderIOExceptionpublic void pushBack(int bytes)
pushBack in interface FSTDecoderpublic void readArrayEnd(FSTClazzInfo clzSerInfo)
readArrayEnd in interface FSTDecoderpublic void readObjectEnd()
readObjectEnd in interface FSTDecoderpublic Object coerceElement(Class arrType, Object value)
coerceElement in interface FSTDecoderpublic int available()
available in interface FSTDecoderpublic boolean inArray()
FSTDecoderinArray in interface FSTDecoderpublic void startFieldReading(Object newObj)
FSTDecoderstartFieldReading in interface FSTDecoderCopyright © 2015. All rights reserved.