Class RemoteOutputStreamImp
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
ecmwf.common.callback.CallBackObject
ecmwf.common.callback.RemoteManagement
ecmwf.common.callback.RemoteOutputStreamImp
- All Implemented Interfaces:
RemoteOutputStream, Closeable, Serializable, AutoCloseable, Remote
public final class RemoteOutputStreamImp
extends RemoteManagement
implements RemoteOutputStream, Closeable
The Class RemoteOutputStreamImp.
- See Also:
-
Field Summary
Fields inherited from class RemoteObject
ref -
Constructor Summary
ConstructorsConstructorDescriptionRemoteOutputStreamImp(Closeable toClose, OutputStream out) Instantiates a new remote output stream imp.Instantiates a new remote output stream imp. -
Method Summary
Methods inherited from class CallBackObject
createOrGetRegistry, getPort, unexportMethods inherited from class UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
RemoteOutputStreamImp
Instantiates a new remote output stream imp.- Parameters:
out- the out- Throws:
RemoteException- the remote exception
-
RemoteOutputStreamImp
Instantiates a new remote output stream imp.- Parameters:
toClose- the to closeout- the out- Throws:
RemoteException- the remote exception
-
-
Method Details
-
alive
public boolean alive()Alive.- Specified by:
alivein classRemoteManagement- Returns:
- true, if successful
-
flush
Flush.- Specified by:
flushin interfaceRemoteOutputStream- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Specified by:
writein interfaceRemoteOutputStream- Parameters:
b- the b- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Specified by:
writein interfaceRemoteOutputStream- Parameters:
b- the boff- the offlen- the len- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Specified by:
writein interfaceRemoteOutputStream- Parameters:
b- the b- Throws:
IOException- Signals that an I/O exception has occurred.
-
destroy
-
close
Closes this stream and performs all associated cleanup.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRemoteOutputStream- Throws:
IOException- If an error occurs during closing.
-