Class FixedByteArrayOutputStream

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.foreach.across.modules.logging.requestresponse.FixedByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class FixedByteArrayOutputStream extends ByteArrayOutputStream
  • Constructor Details

    • FixedByteArrayOutputStream

      public FixedByteArrayOutputStream(int maxSize)
    • FixedByteArrayOutputStream

      public FixedByteArrayOutputStream(int initialSize, int maxSize)
  • Method Details

    • write

      public void write(byte[] b, int off, int len)
      Overrides:
      write in class ByteArrayOutputStream
    • write

      public void write(int b)
      Overrides:
      write in class ByteArrayOutputStream
    • getRealSize

      public long getRealSize()
    • isMaximumReached

      public boolean isMaximumReached()