public class MarshalledValueOutputStream extends ObjectOutputStream
ObjectOutputStream.PutField
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 |
---|
MarshalledValueOutputStream(OutputStream os)
Creates a new instance of MarshalledValueOutputStream
If there is a security manager installed, this method requires a
SerializablePermission("enableSubstitution") permission to ensure it's
ok to enable the stream to do replacement of objects in the stream.
|
Modifier and Type | Method and Description |
---|---|
protected void |
annotateClass(Class<?> cl) |
protected void |
annotateProxyClass(Class<?> cl) |
protected Object |
replaceObject(Object obj)
Override replaceObject to check for Remote objects that are
not RemoteStubs.
|
close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeStreamHeader, writeUnshared, writeUTF
public MarshalledValueOutputStream(OutputStream os) throws IOException
os
- IOException
protected void annotateClass(Class<?> cl) throws IOException
annotateClass
in class ObjectOutputStream
IOException
- Any exception thrown by the underlying OutputStream.protected void annotateProxyClass(Class<?> cl) throws IOException
annotateProxyClass
in class ObjectOutputStream
IOException
- Any exception thrown by the underlying OutputStream.protected Object replaceObject(Object obj) throws IOException
replaceObject
in class ObjectOutputStream
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.