public class CloseNotifyInputStream extends FilterInputStream
Modifier and Type | Class and Description |
---|---|
static interface |
CloseNotifyInputStream.CloseMethod
A callback that allows notifications of the close method
|
in
Constructor and Description |
---|
CloseNotifyInputStream(InputStream in, CloseNotifyInputStream.CloseMethod closeMethod) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream.
|
InputStream |
getWrappedStream() |
available, mark, markSupported, read, read, read, reset, skip
public CloseNotifyInputStream(InputStream in, CloseNotifyInputStream.CloseMethod closeMethod)
public InputStream getWrappedStream()
public void close() throws IOException
in.close()
.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
- if an I/O error occurs.FilterInputStream.in