Package org.apache.commons.io.input
Class AbstractInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.io.input.AbstractInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
CircularInputStream,MemoryMappedFileInputStream,NullInputStream,RandomAccessFileInputStream,ReaderInputStream
Abstracts some InputStream operations for implementations in this package.
- Since:
- 2.17.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, read, reset, skip
-
Constructor Details
-
AbstractInputStream
public AbstractInputStream()Constructs a new instance for subclasses.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
isClosed
Tests whether this instance is closed; ifclose()completed successfully.- Returns:
- whether this instance is closed.
-
setClosed
Sets whether this instance is closed.- Parameters:
closed- whether this instance is closed.
-