public class FSTObjectOutputNoShared extends FSTObjectOutput
buffout, clnames, conf, curDepth, objects, writeExternalWriteAheadwrittenout| Constructor and Description |
|---|
FSTObjectOutputNoShared()
serialize without an underlying stream, the resulting byte array of writing to
this FSTObjectOutput can be accessed using getBuffer(), the size using getWritten().
|
FSTObjectOutputNoShared(FSTConfiguration conf)
serialize without an underlying stream, the resulting byte array of writing to
this FSTObjectOutput can be accessed using getBuffer(), the size using getWritten().
|
FSTObjectOutputNoShared(OutputStream out)
Creates a new FSTObjectOutput stream to write data to the specified
underlying output stream.
|
FSTObjectOutputNoShared(OutputStream out,
FSTConfiguration conf)
Creates a new FSTObjectOutputNoShared stream to write data to the specified
underlying output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
resetForReUse(byte[] out) |
void |
resetForReUse(OutputStream out)
if out == null => automatically create/reuse a bytebuffer
|
protected void |
writeObjectHeader(FSTClazzInfo clsInfo,
FSTClazzInfo.FSTFieldInfo referencee,
Object toWrite) |
protected void |
writeObjectWithContext(FSTClazzInfo.FSTFieldInfo referencee,
Object toWrite) |
addToPredictionArray, close, defaultWriteObject, ensureFree, flush, getBuffer, getClassInfoRegistry, getConf, getCopyOfWrittenBuffer, getFstClazzInfo, getObjectMap, getObjectOutputStream, getWriteExternalWriteAhead, getWritten, objectHasBeenWritten, objectWillBeWritten, resetForReUse, setWriteExternalWriteAhead, writeArray, writeCChar, writeCCharArr, writeCDouble, writeCFloat, writeCInt, writeCIntArr, writeClass, writeClass, writeClass, writeCLong, writeCShort, writeFBooleanArr, writeFByte, writeFByteArr, writeFByteArr, writeFChar, writeFDouble, writeFDoubleArr, writeFFloat, writeFFloatArr, writeFInt, writeFIntArr, writeFIntThin, writeFLong, writeFLongArr, writeFShort, writeFShortArr, writeIntArrCompressed, writeObject, writeObject, writeObjectCompatible, writeObjectInternal, writeStringCompressed, writeStringUTFsize, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFwriteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrite, write, writewriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic FSTObjectOutputNoShared(OutputStream out)
out - public FSTObjectOutputNoShared(OutputStream out, FSTConfiguration conf)
written is
set to zero.
Don't create a FSTConfiguration with each stream, just create one global static configuration and reuse it.
FSTConfiguration is threadsafe.out - the underlying output stream, to be saved for later
use.conf - public FSTObjectOutputNoShared(FSTConfiguration conf)
conf - public FSTObjectOutputNoShared()
protected void writeObjectHeader(FSTClazzInfo clsInfo, FSTClazzInfo.FSTFieldInfo referencee, Object toWrite) throws IOException
writeObjectHeader in class FSTObjectOutputIOExceptionprotected void writeObjectWithContext(FSTClazzInfo.FSTFieldInfo referencee, Object toWrite) throws IOException
writeObjectWithContext in class FSTObjectOutputIOExceptionpublic void resetForReUse(OutputStream out)
FSTObjectOutputresetForReUse in class FSTObjectOutputpublic void resetForReUse(byte[] out)
resetForReUse in class FSTObjectOutputCopyright © 2014. All rights reserved.