Package org.jcsp.net

Class SerializedObject.AccesibleByteArrayOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    SerializedObject

    private static class SerializedObject.AccesibleByteArrayOutputStream
    extends java.io.ByteArrayOutputStream
    This class exists purely for performance reasons. It provides an accessor to the internal byte[] and means that it does not need to be copied.
    • Field Summary

      • Fields inherited from class java.io.ByteArrayOutputStream

        buf, count
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getByteArray()  
      • Methods inherited from class java.io.ByteArrayOutputStream

        close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
      • Methods inherited from class java.io.OutputStream

        flush, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AccesibleByteArrayOutputStream

        private AccesibleByteArrayOutputStream()
    • Method Detail

      • getByteArray

        public byte[] getByteArray()