Class SharedByteArrayOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class SharedByteArrayOutputStream
    extends ByteArrayOutputStream
    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.
    Since:
    JavaMail 1.4.5
    • Constructor Detail

      • SharedByteArrayOutputStream

        public SharedByteArrayOutputStream​(int size)