public class FSTJsonDecoder extends Object implements FSTDecoder
| Constructor and Description |
|---|
FSTJsonDecoder(FSTConfiguration conf) |
public FSTJsonDecoder(FSTConfiguration conf)
public 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 FSTDecoderCopyright © 2015. All rights reserved.