Class CloseFilterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.derby.iapi.services.io.CloseFilterInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
A stream that will throw an exception if its methods are invoked after it
has been closed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanTells if this stream has been closed.private static final StringMessage, modeled after CloseFilterInputStream in the client.Fields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterInputStream
mark, markSupported, resetMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
MESSAGE
Message, modeled after CloseFilterInputStream in the client. -
closed
private boolean closedTells if this stream has been closed.
-
-
Constructor Details
-
CloseFilterInputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
available
- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
checkIfClosed
Throws exception if this stream has been closed.- Throws:
IOException
-