Package de.aristaflow.adept2.util.io
Class CloseInCleanupInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.aristaflow.adept2.util.io.CloseInCleanupInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Cleanup<IOException>The clean-up for closing the wrapped input stream as post-mortem action of thisCloseInCleanupInputStream.Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new stream that ensures post-mortem clean-up of the designated stream. -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
cleanup
The clean-up for closing the wrapped input stream as post-mortem action of thisCloseInCleanupInputStream.
-
-
Constructor Details
-
CloseInCleanupInputStream
Creates a new stream that ensures post-mortem clean-up of the designated stream.- Parameters:
in- The wrapped stream.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-