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
-
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, read, reset, skip
-
Constructor Details
-
AbstractInputStream
public AbstractInputStream()
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in 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.
-