Class CustomCloseableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
com.atlassian.jira.issue.attachment.CustomCloseableInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CustomCloseableInputStream
extends org.apache.commons.io.input.ProxyInputStream
A proxy input stream that allows for custom behaviour when the close() method is called.
- Since:
- v6.3
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionCustomCloseableInputStream(InputStream proxy, io.atlassian.fugue.Effect<InputStream> onClose) -
Method Summary
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
afterRead, available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset, skip, unwrapMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CustomCloseableInputStream
public CustomCloseableInputStream(@Nonnull InputStream proxy, @Nonnull io.atlassian.fugue.Effect<InputStream> onClose)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-