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 Closeableclose in interface AutoCloseableclose in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic 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.