@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, skipclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetWrappedDelegatepublic boolean isClosed()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FSDataInputStreamWrapperIOExceptionpublic static ClosingFSDataInputStream wrapSafe(FSDataInputStream delegate, SafetyNetCloseableRegistry registry) throws IOException
IOExceptionpublic static ClosingFSDataInputStream wrapSafe(FSDataInputStream delegate, SafetyNetCloseableRegistry registry, String debugInfo) throws IOException
IOExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.