Package org.jcsp.net

Class SerializedObject.AccesibleByteArrayOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.jcsp.net.SerializedObject.AccesibleByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
SerializedObject

private static class SerializedObject.AccesibleByteArrayOutputStream extends 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.
  • Constructor Details

    • AccesibleByteArrayOutputStream

      private AccesibleByteArrayOutputStream()
  • Method Details

    • getByteArray

      public byte[] getByteArray()