Class PersistStream

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

    public class PersistStream
    extends SerializeStream
    • Constructor Detail

      • PersistStream

        public PersistStream()
      • PersistStream

        public PersistStream​(int capacity)
      • PersistStream

        public PersistStream​(byte[] array)
      • PersistStream

        public PersistStream​(long address,
                             long length)
    • Method Detail

      • toByteArray

        public byte[] toByteArray()
      • writeObject

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

        protected long alloc​(int size)
        Overrides:
        alloc in class DataStream