Class SharedByteArrayOutputStream

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

    public class SharedByteArrayOutputStream
    A ByteArrayOutputStream that allows us to share the byte array rather than copy it. Eventually could replace this with something that doesn't require a single contiguous byte array.
    JavaMail 1.4.5
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description toStream()  
      • Methods inherited from class

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

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

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

      • SharedByteArrayOutputStream

        public SharedByteArrayOutputStream​(int size)
    • Method Detail

      • toStream

        public toStream()