@Internal public class ClosingFSDataInputStream extends FSDataInputStreamWrapper implements WrappingProxyCloseable<FSDataInputStream>
WrappingProxy
for FSDataInputStream
that is used to
implement a safety net against unclosed streams.
See SafetyNetCloseableRegistry
for more details on how this is utilized.
inputStream
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isClosed() |
String |
toString() |
static ClosingFSDataInputStream |
wrapSafe(FSDataInputStream delegate,
SafetyNetCloseableRegistry registry) |
static ClosingFSDataInputStream |
wrapSafe(FSDataInputStream delegate,
SafetyNetCloseableRegistry registry,
String debugInfo) |
available, getPos, getWrappedDelegate, mark, markSupported, read, read, read, reset, seek, skip
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getWrappedDelegate
public boolean isClosed()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FSDataInputStreamWrapper
IOException
public static ClosingFSDataInputStream wrapSafe(FSDataInputStream delegate, SafetyNetCloseableRegistry registry) throws IOException
IOException
public static ClosingFSDataInputStream wrapSafe(FSDataInputStream delegate, SafetyNetCloseableRegistry registry, String debugInfo) throws IOException
IOException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.