Package org.apache.juneau
Class CloseableByteArrayInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.apache.juneau.CloseableByteArrayInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
A ByteArrayInputStream with a usable close() method.
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferToMethods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
CloseableByteArrayInputStream
-
-
Method Details
-
read
- Overrides:
readin classByteArrayInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteArrayInputStream
-