public class InputStreamWithCloseLogging
extends org.apache.commons.io.input.ProxyInputStream
Modifier and Type | Field and Description |
---|---|
protected Throwable |
creationStackTrace |
protected BiConsumer<? super Throwable,? super Throwable> |
stackTraceConsumer |
in
Constructor and Description |
---|
InputStreamWithCloseLogging(InputStream proxy,
BiConsumer<? super Throwable,? super Throwable> stackTraceConsumer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static InputStream |
wrap(InputStream proxy,
Function<? super Throwable,String> toString,
Consumer<? super String> logger)
Convenience method for e.g.
|
protected Throwable creationStackTrace
protected BiConsumer<? super Throwable,? super Throwable> stackTraceConsumer
public InputStreamWithCloseLogging(InputStream proxy, BiConsumer<? super Throwable,? super Throwable> stackTraceConsumer)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.commons.io.input.ProxyInputStream
IOException
public static InputStream wrap(InputStream proxy, Function<? super Throwable,String> toString, Consumer<? super String> logger)
Copyright © 2016–2021 Smart Data Analytics (SDA) Research Group. All rights reserved.