Package arcommon.xml

Class XmlObjectOutputStream

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

    public class XmlObjectOutputStream
    extends java.io.ObjectOutputStream
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.io.ObjectOutputStream

        java.io.ObjectOutputStream.PutField
    • Field Summary

      • 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, SERIAL_FILTER_PERMISSION, 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 
      Modifier Constructor Description
      protected XmlObjectOutputStream​(XmlSerializer pxmlSerializer, java.lang.Object pobject, java.lang.Class<? extends java.lang.Object> pclazz, java.util.ArrayList<arcommon.xml.XmlSerializer.FieldData> pfields, int plevel, boolean ptagClosed, java.lang.Class<?> pspecialHandlingClass)  
    • Constructor Detail

      • XmlObjectOutputStream

        protected XmlObjectOutputStream​(XmlSerializer pxmlSerializer,
                                        java.lang.Object pobject,
                                        java.lang.Class<? extends java.lang.Object> pclazz,
                                        java.util.ArrayList<arcommon.xml.XmlSerializer.FieldData> pfields,
                                        int plevel,
                                        boolean ptagClosed,
                                        java.lang.Class<?> pspecialHandlingClass)
                                 throws java.io.IOException,
                                        java.lang.SecurityException
        Throws:
        java.io.IOException
        java.lang.SecurityException
    • Method Detail

      • defaultWriteObject

        public void defaultWriteObject()
                                throws java.io.IOException
        Overrides:
        defaultWriteObject in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] bytes)
                   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 void write​(byte[] b,
                          int offset,
                          int length)
                   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 void write​(int 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
      • writeInt

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

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

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

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

        public void writeLong​(long l)
                       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 void writeShort​(int s)
                        throws java.io.IOException
        Specified by:
        writeShort in interface java.io.DataOutput
        Overrides:
        writeShort in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeUTF

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

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

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

        public void writeChars​(java.lang.String s)
                        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 void writeDouble​(double d)
                         throws java.io.IOException
        Specified by:
        writeDouble in interface java.io.DataOutput
        Overrides:
        writeDouble in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeFields

        public void writeFields()
                         throws java.io.IOException
        Overrides:
        writeFields in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • putFields

        public java.io.ObjectOutputStream.PutField putFields()
                                                      throws java.io.IOException
        Overrides:
        putFields in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • close

        public 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
      • flush

        public 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
      • useProtocolVersion

        public void useProtocolVersion​(int p0)
                                throws java.io.IOException
        Overrides:
        useProtocolVersion in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeUnshared

        public void writeUnshared​(java.lang.Object p0)
                           throws java.io.IOException
        Overrides:
        writeUnshared in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException
      • writeObjectOverride

        protected void writeObjectOverride​(java.lang.Object o)
                                    throws java.io.IOException
        Overrides:
        writeObjectOverride in class java.io.ObjectOutputStream
        Throws:
        java.io.IOException