public class CloseShieldInputStream extends ProxyInputStream
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.
|Constructor and Description|
Creates a proxy that shields the given input stream from being closed.
|Modifier and Type||Method and Description|
Replaces the underlying input stream with a
available, mark, markSupported, read, read, read, reset, skip
public CloseShieldInputStream(java.io.InputStream in)
in- underlying input stream
public void close()
ClosedInputStreamsentinel. The original input stream will remain open, but this proxy will appear closed.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"