Package org.apache.commons.io.input
Class AbstractInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.io.input.AbstractInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
CircularInputStream
,MemoryMappedFileInputStream
,NullInputStream
,RandomAccessFileInputStream
,ReaderInputStream
public abstract class AbstractInputStream extends java.io.InputStream
Abstracts some InputStream operations for implementations in this package.- Since:
- 2.17.0
-
-
Constructor Summary
Constructors Constructor Description AbstractInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isClosed()
Tests whether this instance is closed; ifclose()
completed successfully.void
setClosed(boolean closed)
Sets whether this instance is closed.
-
-
-
Constructor Detail
-
AbstractInputStream
public AbstractInputStream()
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
isClosed
public boolean isClosed()
Tests whether this instance is closed; ifclose()
completed successfully.- Returns:
- whether this instance is closed.
-
setClosed
public void setClosed(boolean closed)
Sets whether this instance is closed.- Parameters:
closed
- whether this instance is closed.
-
-