public interface FSTEncoder
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close and flush to underlying stream if present.
|
void |
ensureFree(int bytes) |
void |
externalEnd(FSTClazzInfo clz) |
void |
flush()
resets stream (positions are lost)
|
byte[] |
getBuffer() |
FSTConfiguration |
getConf() |
int |
getWritten() |
boolean |
isByteArrayBased() |
boolean |
isPrimitiveArray(Object array,
Class<?> componentType) |
boolean |
isTagMultiDimSubArrays() |
boolean |
isWritingAttributes() |
void |
registerClass(Class possible) |
void |
reset(byte[] out) |
void |
setConf(FSTConfiguration conf) |
void |
setOutstream(OutputStream outstream)
if output stream is null, just encode into a byte array
|
void |
skip(int i) |
void |
writeArrayEnd() |
void |
writeAttributeName(FSTClazzInfo.FSTFieldInfo subInfo) |
void |
writeClass(Class cl) |
void |
writeClass(FSTClazzInfo clInf) |
void |
writeFByte(int v) |
void |
writeFChar(char c) |
void |
writeFDouble(double value) |
void |
writeFFloat(float value) |
void |
writeFieldsEnd(FSTClazzInfo serializationInfo) |
void |
writeFInt(int anInt) |
void |
writeFLong(long anInt) |
void |
writeFShort(short c) |
void |
writeInt32At(int position,
int v)
used to write uncompressed int (guaranteed length = 4) at a (eventually recent) position
|
void |
writePrimitiveArray(Object array,
int start,
int length)
does not write class tag and length
|
void |
writeRawBytes(byte[] bufferedName,
int off,
int length) |
void |
writeStringUTF(String str) |
boolean |
writeTag(byte tag,
Object info,
long somValue,
Object toWrite,
FSTObjectOutput oout) |
void |
writeVersionTag(int version) |
void setConf(FSTConfiguration conf)
void writeRawBytes(byte[] bufferedName,
int off,
int length)
throws IOException
IOExceptionvoid writePrimitiveArray(Object array, int start, int length) throws IOException
array - IOExceptionvoid writeStringUTF(String str) throws IOException
IOExceptionvoid writeFShort(short c)
throws IOException
IOExceptionvoid writeFChar(char c)
throws IOException
IOExceptionvoid writeFByte(int v)
throws IOException
IOExceptionvoid writeFInt(int anInt)
throws IOException
IOExceptionvoid writeFLong(long anInt)
throws IOException
IOExceptionvoid writeFFloat(float value)
throws IOException
IOExceptionvoid writeFDouble(double value)
throws IOException
IOExceptionint getWritten()
void skip(int i)
void close()
throws IOException
IOExceptionvoid reset(byte[] out)
void flush()
throws IOException
IOExceptionvoid writeInt32At(int position,
int v)
position - v - void setOutstream(OutputStream outstream)
outstream - void ensureFree(int bytes)
throws IOException
IOExceptionbyte[] getBuffer()
void registerClass(Class possible)
void writeClass(Class cl)
void writeClass(FSTClazzInfo clInf)
boolean writeTag(byte tag,
Object info,
long somValue,
Object toWrite,
FSTObjectOutput oout)
throws IOException
IOExceptionvoid writeAttributeName(FSTClazzInfo.FSTFieldInfo subInfo)
void externalEnd(FSTClazzInfo clz)
boolean isWritingAttributes()
boolean isTagMultiDimSubArrays()
void writeVersionTag(int version)
throws IOException
IOExceptionboolean isByteArrayBased()
void writeArrayEnd()
void writeFieldsEnd(FSTClazzInfo serializationInfo)
FSTConfiguration getConf()
Copyright © 2015. All rights reserved.