Class ByteArrayOutputStream2

  • All Implemented Interfaces:,, java.lang.AutoCloseable

    public class ByteArrayOutputStream2
    ByteArrayOutputStream with public internals
    • Field Summary

      • Fields inherited from class

        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

        close, reset, size, toByteArray, toString, toString, toString, write, write, writeBytes, writeTo
      • Methods inherited from class

        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)
        toString in class