Class InterruptibleOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
ecmwf.common.rmi.interruptible.InterruptibleOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
A FilterOutputStream that monitors client disconnects during RMI operations.
-
Field Summary
Fields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new interruptible output stream.InterruptibleOutputStream(OutputStream out, Socket socket) Instantiates a new interruptible output stream. -
Method Summary
Methods inherited from class FilterOutputStream
flushMethods inherited from class OutputStream
nullOutputStream
-
Constructor Details
-
InterruptibleOutputStream
Instantiates a new interruptible output stream.- Parameters:
out- the out
-
InterruptibleOutputStream
Instantiates a new interruptible output stream.- Parameters:
out- the outsocket- the socket
-
-
Method Details
-
write
Write.- Overrides:
writein classFilterOutputStream- Parameters:
b- the b- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Overrides:
writein classFilterOutputStream- Parameters:
b- the b- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Overrides:
writein classFilterOutputStream- Parameters:
b- the boff- the offlen- the len- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException- Signals that an I/O exception has occurred.
-