Class InterruptibleInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
ecmwf.common.rmi.interruptible.InterruptibleInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
A FilterInputStream that monitors RMI client socket disconnection.
-
Field Summary
Fields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new interruptible input stream.InterruptibleInputStream(InputStream in, Socket socket) Instantiates a new interruptible input stream. -
Method Summary
Methods inherited from class FilterInputStream
available, mark, markSupported, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
InterruptibleInputStream
Instantiates a new interruptible input stream.- Parameters:
in- the in
-
InterruptibleInputStream
Instantiates a new interruptible input stream.- Parameters:
in- the insocket- the socket
-
-
Method Details
-
read
Read.- Overrides:
readin classFilterInputStream- Returns:
- the int
- Throws:
IOException- Signals that an I/O exception has occurred.
-
read
Read.- Overrides:
readin classFilterInputStream- Parameters:
b- the b- Returns:
- the int
- Throws:
IOException- Signals that an I/O exception has occurred.
-
read
Read.- Overrides:
readin classFilterInputStream- Parameters:
b- the boff- the offlen- the len- Returns:
- the int
- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException- Signals that an I/O exception has occurred.
-