Package jadex.common
Class ProtectedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
jadex.common.ProxyInputStream
jadex.common.ProtectedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Protects the underlying input stream from being closed.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jadex.common.ProxyInputStream
readMethods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ProtectedInputStream
Create a protected input stream.- Parameters:
in- The input stream.
-
-
Method Details
-
close
public void close()Close the stream. Replaces the underlying stream with an always closed version.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream
-