public class FSTBytezDecoder extends Object implements FSTDecoder
| Modifier and Type | Field and Description |
|---|---|
FSTClazzNameRegistry |
clnames |
| Constructor and Description |
|---|
FSTBytezDecoder(FSTConfiguration conf) |
FSTBytezDecoder(FSTConfiguration conf,
BasicBytez input) |
| Modifier and Type | Method and Description |
|---|---|
Class |
classForName(String name) |
void |
close() |
void |
consumeEndMarker() |
void |
ensureReadAhead(int bytes) |
byte[] |
getBuffer() |
Object |
getDirectObject() |
BasicBytez |
getInput() |
int |
getInputPos() |
int |
getObjectHeaderLen() |
boolean |
isEndMarker(String s) |
boolean |
isMapBased() |
void |
moveTo(int position) |
Class |
readArrayHeader() |
FSTClazzInfo |
readClass() |
void |
readExternalEnd() |
byte |
readFByte() |
char |
readFChar() |
double |
readFDouble() |
float |
readFFloat()
Reads a 4 byte float.
|
int |
readFInt() |
void |
readFIntArr(int len,
int[] arr) |
long |
readFLong() |
Object |
readFPrimitiveArray(Object array,
Class componentType,
int len)
assumes class header+len already read
|
short |
readFShort() |
protected void |
readNextInputChunk(int bytes) |
byte |
readObjectHeaderTag() |
void |
readPlainBytes(byte[] b,
int off,
int len) |
int |
readPlainInt() |
String |
readStringAsc()
len < 127 !!!!!
|
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 |
setInput(BasicBytez input) |
void |
setInputStream(InputStream in) |
void |
skip(int n) |
public FSTClazzNameRegistry clnames
public FSTBytezDecoder(FSTConfiguration conf, BasicBytez input)
public FSTBytezDecoder(FSTConfiguration conf)
public void ensureReadAhead(int bytes)
ensureReadAhead in interface FSTDecoderprotected void readNextInputChunk(int bytes)
public String readStringUTF() throws IOException
readStringUTF in interface FSTDecoderIOExceptionpublic byte readObjectHeaderTag()
throws IOException
readObjectHeaderTag in interface FSTDecoderIOExceptionpublic String readStringAsc() throws IOException
readStringAsc in interface FSTDecoderIOExceptionpublic BasicBytez getInput()
public void setInput(BasicBytez input)
public Object readFPrimitiveArray(Object array, Class componentType, int len)
readFPrimitiveArray in interface FSTDecodercomponentType - len - public 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 final byte readFByte()
throws IOException
readFByte 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 reset()
reset in interface FSTDecoderpublic void setInputStream(InputStream in)
setInputStream in interface FSTDecoderpublic void resetToCopyOf(byte[] bytes,
int off,
int len)
resetToCopyOf in interface FSTDecoderpublic void resetWith(byte[] bytes,
int len)
resetWith 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 Object getDirectObject()
getDirectObject in interface FSTDecoderpublic int getObjectHeaderLen()
getObjectHeaderLen in interface FSTDecoderpublic void consumeEndMarker()
consumeEndMarker in interface FSTDecoderpublic Class 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 FSTDecoderIOExceptionCopyright © 2014. All rights reserved.