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
  • Constructor Details

    • CustomCloseableInputStream

      public CustomCloseableInputStream(@Nonnull InputStream proxy, @Nonnull io.atlassian.fugue.Effect<InputStream> onClose)
  • Method Details