Package com.sun.mail.util
Class SharedByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- com.sun.mail.util.SharedByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class SharedByteArrayOutputStream extends java.io.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 Summary
Constructors Constructor Description SharedByteArrayOutputStream(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
toStream()
-