public class FSTObjectOutputNoShared extends FSTObjectOutput
ARRAY, BIG_BOOLEAN_FALSE, BIG_BOOLEAN_TRUE, BIG_INT, BIG_LONG, codec, conf, curDepth, DIRECT_ARRAY_OBJECT, DIRECT_OBJECT, ENUM, HANDLE, listener, NULL, NULL_PLACEHOLDER, OBJECT, objects, ONE_OF, SPECIAL_COMPATIBILITY_OBJECT_TAG, STRING, TYPED, writeExternalWriteAhead| 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 FSTClazzInfo |
writeObjectWithContext(FSTClazzInfo.FSTFieldInfo referencee,
Object toWrite) |
close, defaultWriteObject, ensureFree, flush, getBuffer, getClassInfoRegistry, getCodec, getConf, getCopyOfWrittenBuffer, getFstClazzInfo, getListener, getObjectMap, getObjectOutputStream, getWriteExternalWriteAhead, getWritten, objectHasBeenWritten, objectWillBeWritten, resetForReUse, setCodec, setListener, setWriteExternalWriteAhead, write, write, write, writeArray, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassTag, writeDouble, writeFloat, writeInt, writeLong, writeObject, writeObject, writeObjectCompatible, writeObjectHeader, writeObjectInternal, writeObjectWithContext, writeShort, writeStringUTF, 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 FSTClazzInfo 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 © 2015. All rights reserved.