|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream org.apache.tika.io.ProxyInputStream org.apache.tika.io.CloseShieldInputStream
public class CloseShieldInputStream
Proxy stream that prevents the underlying input stream from being closed.
This class is typically used in cases where an input stream needs to be passed to a component that wants to explicitly close the stream even if more input would still be available to other components.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
CloseShieldInputStream(java.io.InputStream in)
Creates a proxy that shields the given input stream from being closed. |
Method Summary | |
---|---|
void |
close()
Replaces the underlying input stream with a ClosedInputStream
sentinel. |
Methods inherited from class org.apache.tika.io.ProxyInputStream |
---|
afterRead, available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseShieldInputStream(java.io.InputStream in)
in
- underlying input streamMethod Detail |
---|
public void close()
ClosedInputStream
sentinel. The original input stream will remain open, but this proxy
will appear closed.
close
in interface java.io.Closeable
close
in class ProxyInputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |