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 boolean
Tells if this stream has been closed.private static final String
Message, modeled after CloseFilterInputStream in the client.Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
mark, markSupported, reset
Methods inherited from class java.io.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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
checkIfClosed
Throws exception if this stream has been closed.- Throws:
IOException
-