ByteArrayInputStream

Class ByteArrayInputStream

All Implemented Interfaces:
Closeable, AutoCloseable
public class ByteArrayInputStream
extends InputStream

A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read method.

Closing a ByteArrayInputStream has no effect. The methods in this class can be called after