public class CompactObjectOutputStream extends ObjectOutputStream
ObjectOutputStream.PutField
Modifier and Type | Field and Description |
---|---|
static Map<Class<?>,Integer> |
KNOWN_CLASSES |
static Map<Integer,Class<?>> |
KNOWN_CODES |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Constructor and Description |
---|
CompactObjectOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
static void |
addKnownClass(Class<?> clazz,
byte code) |
List<InputStreamFactory.StreamFactoryReference> |
getReferences() |
List<InputStream> |
getStreams() |
protected Object |
replaceObject(Object obj) |
void |
reset() |
protected void |
writeClassDescriptor(ObjectStreamClass desc) |
protected void |
writeStreamHeader() |
annotateClass, annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeUnshared, writeUTF
public CompactObjectOutputStream(OutputStream out) throws IOException
IOException
public static void addKnownClass(Class<?> clazz, byte code)
public List<InputStream> getStreams()
public void reset() throws IOException
reset
in class ObjectOutputStream
IOException
public List<InputStreamFactory.StreamFactoryReference> getReferences()
protected void writeStreamHeader() throws IOException
writeStreamHeader
in class ObjectOutputStream
IOException
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException
writeClassDescriptor
in class ObjectOutputStream
IOException
protected Object replaceObject(Object obj) throws IOException
replaceObject
in class ObjectOutputStream
IOException
Copyright © 2019. All rights reserved.