Class ObjectOutputChannel

  • All Implemented Interfaces:
    java.io.DataInput, java.io.DataOutput, java.io.ObjectInput, java.io.ObjectOutput, java.lang.AutoCloseable

    public class ObjectOutputChannel
    extends DataStream
    • Field Detail

      • ch

        private final java.nio.channels.WritableByteChannel ch
      • serializerSet

        private long[] serializerSet
      • serializerSetSize

        private int serializerSetSize
      • bytesWritten

        private long bytesWritten
    • Constructor Detail

      • ObjectOutputChannel

        public ObjectOutputChannel​(java.nio.channels.WritableByteChannel ch)
      • ObjectOutputChannel

        public ObjectOutputChannel​(java.nio.channels.WritableByteChannel ch,
                                   int bufSize)
    • Method Detail

      • getBytesWritten

        public long getBytesWritten()
      • writeObject

        public void writeObject​(java.lang.Object obj)
                         throws java.io.IOException
        Specified by:
        writeObject in interface java.io.ObjectOutput
        Overrides:
        writeObject in class DataStream
        Throws:
        java.io.IOException
      • reset

        public void reset()
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.ObjectOutput
        Overrides:
        flush in class DataStream
        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.ObjectInput
        Specified by:
        close in interface java.io.ObjectOutput
        Overrides:
        close in class DataStream
        Throws:
        java.io.IOException
      • alloc

        protected long alloc​(int size)
                      throws java.io.IOException
        Overrides:
        alloc in class DataStream
        Throws:
        java.io.IOException
      • grow

        private void grow​(int size)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • addSerializer

        private boolean addSerializer​(long uid)
      • resizeSerializerSet

        private void resizeSerializerSet()