Class IIOPOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.io.ObjectOutput, java.io.ObjectStreamConstants, java.lang.AutoCloseable

    public class IIOPOutputStream
    extends OutputStreamHook
    IIOPOutputStream is ...
    Since:
    JDK1.1.6
    Version:
    0.01, 4/6/98
    • Field Detail

      • bridge

        private static org.glassfish.pfl.basic.reflection.Bridge bridge
      • currentObject

        private java.lang.Object currentObject
      • recursionDepth

        private int recursionDepth
      • simpleWriteDepth

        private int simpleWriteDepth
      • abortIOException

        private java.io.IOException abortIOException
    • Constructor Detail

      • IIOPOutputStream

        public IIOPOutputStream()
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setOrbStream

        final void setOrbStream​(OutputStream os)
      • recursionDepthInfo

        @InfoMethod
        private void recursionDepthInfo​(int rd)
      • increaseRecursionDepth

        final void increaseRecursionDepth()
      • decreaseRecursionDepth

        final int decreaseRecursionDepth()
      • writeFormatVersion

        private void writeFormatVersion()
      • writeObjectOverride

        public final void writeObjectOverride​(java.lang.Object obj)
                                       throws java.io.IOException
        Override the actions of the final method "writeObject()" in ObjectOutputStream.
        Overrides:
        writeObjectOverride in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
        Since:
        JDK1.1.6
      • simpleWriteObject

        public final void simpleWriteObject​(java.lang.Object obj,
                                            byte formatVersion)
        Override the actions of the final method "writeObject()" in ObjectOutputStream.
        Parameters:
        obj - Object to write
        formatVersion - Format version
        Since:
        JDK1.1.6
      • defaultWriteObjectDelegate

        public final void defaultWriteObjectDelegate()
        Override the actions of the final method "defaultWriteObject()" in ObjectOutputStream.
        Specified by:
        defaultWriteObjectDelegate in class OutputStreamHook
        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

        protected final void annotateClass​(java.lang.Class<?> cl)
                                    throws java.io.IOException
        Overrides:
        annotateClass in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • close

        public final void close()
                         throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.io.ObjectOutput
        Overrides:
        close in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • drain

        protected final void drain()
                            throws java.io.IOException
        Overrides:
        drain in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • flush

        public final void flush()
                         throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in interface java.io.ObjectOutput
        Overrides:
        flush in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • replaceObject

        protected final java.lang.Object replaceObject​(java.lang.Object obj)
                                                throws java.io.IOException
        Overrides:
        replaceObject in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • reset

        public final void reset()
                         throws java.io.IOException
        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 class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
        Since:
        JDK1.1
      • write

        public final void write​(byte[] b)
                         throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Specified by:
        write in interface java.io.ObjectOutput
        Overrides:
        write in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • write

        public final void write​(byte[] b,
                                int off,
                                int len)
                         throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Specified by:
        write in interface java.io.ObjectOutput
        Overrides:
        write in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • write

        public final void write​(int data)
                         throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Specified by:
        write in interface java.io.ObjectOutput
        Overrides:
        write in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeBoolean

        public final void writeBoolean​(boolean data)
                                throws java.io.IOException
        Specified by:
        writeBoolean in interface java.io.DataOutput
        Overrides:
        writeBoolean in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeByte

        public final void writeByte​(int data)
                             throws java.io.IOException
        Specified by:
        writeByte in interface java.io.DataOutput
        Overrides:
        writeByte in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeBytes

        public final void writeBytes​(java.lang.String data)
                              throws java.io.IOException
        Specified by:
        writeBytes in interface java.io.DataOutput
        Overrides:
        writeBytes in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeChar

        public final void writeChar​(int data)
                             throws java.io.IOException
        Specified by:
        writeChar in interface java.io.DataOutput
        Overrides:
        writeChar in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeChars

        public final void writeChars​(java.lang.String data)
                              throws java.io.IOException
        Specified by:
        writeChars in interface java.io.DataOutput
        Overrides:
        writeChars in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeDouble

        public final void writeDouble​(double data)
                               throws java.io.IOException
        Specified by:
        writeDouble in interface java.io.DataOutput
        Overrides:
        writeDouble in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeFloat

        public final void writeFloat​(float data)
                              throws java.io.IOException
        Specified by:
        writeFloat in interface java.io.DataOutput
        Overrides:
        writeFloat in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeInt

        public final void writeInt​(int data)
                            throws java.io.IOException
        Specified by:
        writeInt in interface java.io.DataOutput
        Overrides:
        writeInt in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeLong

        public final void writeLong​(long data)
                             throws java.io.IOException
        Specified by:
        writeLong in interface java.io.DataOutput
        Overrides:
        writeLong in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeShort

        public final void writeShort​(int data)
                              throws java.io.IOException
        Specified by:
        writeShort in interface java.io.DataOutput
        Overrides:
        writeShort in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeStreamHeader

        protected final void writeStreamHeader()
                                        throws java.io.IOException
        Overrides:
        writeStreamHeader in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • internalWriteUTF

        protected void internalWriteUTF​(OutputStream stream,
                                        java.lang.String data)
        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 to
        data - Data to write
      • writeUTF

        public final void writeUTF​(java.lang.String data)
                            throws java.io.IOException
        Specified by:
        writeUTF in interface java.io.DataOutput
        Overrides:
        writeUTF in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • checkSpecialClasses

        private boolean checkSpecialClasses​(java.lang.Object obj)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • checkSubstitutableSpecialClasses

        private boolean checkSubstitutableSpecialClasses​(java.lang.Object obj)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • outputObject

        private void outputObject​(java.lang.Object obj)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • invokeObjectWriter

        private void invokeObjectWriter​(ObjectStreamClass osc,
                                        java.lang.Object obj)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeObjectField

        private void writeObjectField​(ObjectStreamField field,
                                      java.lang.Object objectValue)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • outputClassFields

        private void outputClassFields​(java.lang.Object o,
                                       java.lang.Class cl,
                                       ObjectStreamField[] fields)
                                throws java.io.IOException,
                                       java.io.InvalidClassException
        Throws:
        java.io.IOException
        java.io.InvalidClassException