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
read
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, reset, skip
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
-