Module jakarta.mail

Class SharedByteArrayInputStream

java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
jakarta.mail.util.SharedByteArrayInputStream
All Implemented Interfaces:
SharedInputStream, Closeable, AutoCloseable

public class SharedByteArrayInputStream extends ByteArrayInputStream implements SharedInputStream
A ByteArrayInputStream that implements the SharedInputStream interface, allowing the underlying byte array to be shared between multiple readers.
Since:
JavaMail 1.4