Package com.sun.corba.ee.impl.io
Class IIOPOutputStream
java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
com.sun.corba.ee.impl.io.OutputStreamHook
com.sun.corba.ee.impl.io.IIOPOutputStream
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,ObjectOutput
,ObjectStreamConstants
,AutoCloseable
IIOPOutputStream is ...
- Since:
- JDK1.1.6
- Version:
- 0.01, 4/6/98
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.corba.ee.impl.io.OutputStreamHook
OutputStreamHook.DefaultState, OutputStreamHook.InWriteObjectState, OutputStreamHook.WriteObjectState, OutputStreamHook.WroteCustomDataState, OutputStreamHook.WroteDefaultDataState
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IOException
private static org.glassfish.pfl.basic.reflection.Bridge
private Stack
<ObjectStreamClass> private ObjectStreamClass
private Object
private OutputStream
private int
private int
Fields inherited from class com.sun.corba.ee.impl.io.OutputStreamHook
IN_WRITE_OBJECT, NOT_IN_WRITE_OBJECT, streamFormatVersion, writeObjectState, WROTE_CUSTOM_DATA, WROTE_DEFAULT_DATA
Fields inherited from interface java.io.ObjectStreamConstants
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
annotateClass
(Class<?> cl) protected void
private boolean
private boolean
final void
close()
(package private) final int
final void
Override the actions of the final method "defaultWriteObject()" in ObjectOutputStream.protected final void
drain()
final boolean
enableReplaceObjectDelegate
(boolean enable) Override the actions of the final method "enableReplaceObject()" in ObjectOutputStream.final void
flush()
(package private) ObjectStreamField[]
(package private) final OutputStream
(package private) final void
protected void
internalWriteUTF
(OutputStream stream, String data) Helper method for correcting the Kestrel bug 4367783 (dealing with larger than 8-bit chars).private void
invokeObjectWriter
(ObjectStreamClass osc, Object obj) private void
outputClassFields
(Object o, Class cl, ObjectStreamField[] fields) private void
outputObject
(Object obj) private void
recursionDepthInfo
(int rd) protected final Object
replaceObject
(Object obj) final void
reset()
Reset will disregard the state of any objects already written to the stream.(package private) final void
final void
simpleWriteObject
(Object obj, byte formatVersion) Override the actions of the final method "writeObject()" in ObjectOutputStream.final void
write
(byte[] b) final void
write
(byte[] b, int off, int len) final void
write
(int data) final void
writeBoolean
(boolean data) final void
writeByte
(int data) final void
writeBytes
(String data) final void
writeChar
(int data) final void
writeChars
(String data) final void
writeDouble
(double data) (package private) void
writeField
(ObjectStreamField field, Object value) final void
writeFloat
(float data) private void
final void
writeInt
(int data) final void
writeLong
(long data) private void
writeObjectField
(ObjectStreamField field, Object objectValue) final void
Override the actions of the final method "writeObject()" in ObjectOutputStream.final void
writeShort
(int data) protected final void
final void
Methods inherited from class com.sun.corba.ee.impl.io.OutputStreamHook
defaultWriteObject, getStreamFormatVersion, putFields, setState, writeFields
Methods inherited from class java.io.ObjectOutputStream
annotateProxyClass, enableReplaceObject, useProtocolVersion, writeClassDescriptor, writeObject, writeUnshared
-
Field Details
-
bridge
private static org.glassfish.pfl.basic.reflection.Bridge bridge -
orbStream
-
currentObject
-
currentClassDesc
-
recursionDepth
private int recursionDepth -
simpleWriteDepth
private int simpleWriteDepth -
abortIOException
-
classDescStack
-
-
Constructor Details
-
IIOPOutputStream
- Throws:
IOException
-
-
Method Details
-
beginOptionalCustomData
protected void beginOptionalCustomData()- Specified by:
beginOptionalCustomData
in classOutputStreamHook
-
setOrbStream
-
getOrbStream
- Specified by:
getOrbStream
in classOutputStreamHook
-
recursionDepthInfo
@InfoMethod private void recursionDepthInfo(int rd) -
increaseRecursionDepth
final void increaseRecursionDepth() -
decreaseRecursionDepth
final int decreaseRecursionDepth() -
writeFormatVersion
private void writeFormatVersion() -
writeObjectOverride
Override the actions of the final method "writeObject()" in ObjectOutputStream.- Overrides:
writeObjectOverride
in classObjectOutputStream
- Throws:
IOException
- Since:
- JDK1.1.6
-
simpleWriteObject
Override the actions of the final method "writeObject()" in ObjectOutputStream.- Parameters:
obj
- Object to writeformatVersion
- Format version- Since:
- JDK1.1.6
-
getFieldsNoCopy
ObjectStreamField[] getFieldsNoCopy()- Specified by:
getFieldsNoCopy
in classOutputStreamHook
-
defaultWriteObjectDelegate
public final void defaultWriteObjectDelegate()Override the actions of the final method "defaultWriteObject()" in ObjectOutputStream.- Specified by:
defaultWriteObjectDelegate
in classOutputStreamHook
- Since:
- JDK1.1.6
-
enableReplaceObjectDelegate
public final boolean enableReplaceObjectDelegate(boolean enable) Override the actions of the final method "enableReplaceObject()" in ObjectOutputStream.- Parameters:
enable
- ignored- Returns:
false
- Since:
- JDK1.1.6
-
annotateClass
- Overrides:
annotateClass
in classObjectOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceObjectOutput
- Overrides:
close
in classObjectOutputStream
- Throws:
IOException
-
drain
- Overrides:
drain
in classObjectOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in interfaceObjectOutput
- Overrides:
flush
in classObjectOutputStream
- Throws:
IOException
-
replaceObject
- Overrides:
replaceObject
in classObjectOutputStream
- Throws:
IOException
-
reset
Reset will disregard the state of any objects already written to the stream. The state is reset to be the same as a new ObjectOutputStream. The current point in the stream is marked as reset so the corresponding ObjectInputStream will be reset at the same point. Objects previously written to the stream will not be refered to as already being in the stream. They will be written to the stream again.- Overrides:
reset
in classObjectOutputStream
- Throws:
IOException
- Since:
- JDK1.1
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in interfaceObjectOutput
- Overrides:
write
in classObjectOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in interfaceObjectOutput
- Overrides:
write
in classObjectOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in interfaceObjectOutput
- Overrides:
write
in classObjectOutputStream
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Overrides:
writeBoolean
in classObjectOutputStream
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Overrides:
writeByte
in classObjectOutputStream
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
- Overrides:
writeBytes
in classObjectOutputStream
- Throws:
IOException
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Overrides:
writeChar
in classObjectOutputStream
- Throws:
IOException
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Overrides:
writeChars
in classObjectOutputStream
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Overrides:
writeDouble
in classObjectOutputStream
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Overrides:
writeFloat
in classObjectOutputStream
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Overrides:
writeInt
in classObjectOutputStream
- Throws:
IOException
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Overrides:
writeLong
in classObjectOutputStream
- Throws:
IOException
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Overrides:
writeShort
in classObjectOutputStream
- Throws:
IOException
-
writeStreamHeader
- Overrides:
writeStreamHeader
in classObjectOutputStream
- Throws:
IOException
-
internalWriteUTF
Helper method for correcting the Kestrel bug 4367783 (dealing with larger than 8-bit chars). The old behavior was preserved in orbutil.IIOPInputStream_1_3 in order to interoperate with our legacy ORBs.- Parameters:
stream
- Stream to write todata
- Data to write
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Overrides:
writeUTF
in classObjectOutputStream
- Throws:
IOException
-
checkSpecialClasses
- Throws:
IOException
-
checkSubstitutableSpecialClasses
- Throws:
IOException
-
outputObject
- Throws:
IOException
-
invokeObjectWriter
- Throws:
IOException
-
writeField
- Specified by:
writeField
in classOutputStreamHook
- Throws:
IOException
-
writeObjectField
- Throws:
IOException
-
outputClassFields
private void outputClassFields(Object o, Class cl, ObjectStreamField[] fields) throws IOException, InvalidClassException - Throws:
IOException
InvalidClassException
-