Class ByteArrayOutputStream2

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

    public class ByteArrayOutputStream2
    extends java.io.ByteArrayOutputStream
    ByteArrayOutputStream with public internals
    • 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[] getBuf()  
      int getCount()  
      void reset​(int minSize)  
      void setCount​(int count)  
      java.lang.String toString​(java.nio.charset.Charset charset)  
      void writeUnchecked​(int b)  
      • Methods inherited from class java.io.ByteArrayOutputStream

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

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

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

      • ByteArrayOutputStream2

        public ByteArrayOutputStream2()
      • ByteArrayOutputStream2

        public ByteArrayOutputStream2​(int size)
    • Method Detail

      • getBuf

        public byte[] getBuf()
      • getCount

        public int getCount()
      • setCount

        public void setCount​(int count)
      • reset

        public void reset​(int minSize)
      • writeUnchecked

        public void writeUnchecked​(int b)
      • toString

        public java.lang.String toString​(java.nio.charset.Charset charset)
        Overrides:
        toString in class java.io.ByteArrayOutputStream