Class RemoteInputStreamImp
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.RemoteInputStreamImp
- All Implemented Interfaces:
RemoteInputStream, Closeable, Serializable, AutoCloseable, Remote
public final class RemoteInputStreamImp
extends RemoteManagement
implements RemoteInputStream, Closeable
The Class RemoteInputStreamImp.
- See Also:
-
Field Summary
Fields inherited from class RemoteObject
ref -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new remote input stream imp. -
Method Summary
Modifier and TypeMethodDescriptionbooleanalive()Alive.intAvailable.voidclose()Closes this stream and performs all associated cleanup.voiddestroy()Destroy.voidmark(int readlimit) Mark.booleanMark supported.intread()Read.read(int len) Read.voidreset()Reset.longskip(long n) Skip.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
-
RemoteInputStreamImp
Instantiates a new remote input stream imp.- Parameters:
in- the in- Throws:
RemoteException- the remote exception
-
-
Method Details
-
alive
public boolean alive()Alive.- Specified by:
alivein classRemoteManagement- Returns:
- true, if successful
-
available
Available.- Specified by:
availablein interfaceRemoteInputStream- Returns:
- the int
- Throws:
IOException- Signals that an I/O exception has occurred.
-
mark
Mark.- Specified by:
markin interfaceRemoteInputStream- Parameters:
readlimit- the read limit- Throws:
RemoteException- the remote exception
-
markSupported
Mark supported.- Specified by:
markSupportedin interfaceRemoteInputStream- Returns:
- true, if successful
- Throws:
RemoteException- the remote exception
-
read
Read.- Specified by:
readin interfaceRemoteInputStream- Returns:
- the int
- Throws:
IOException- Signals that an I/O exception has occurred.
-
read
Read.- Specified by:
readin interfaceRemoteInputStream- Parameters:
len- the len- Returns:
- the byte stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
reset
Reset.- Specified by:
resetin interfaceRemoteInputStream- Throws:
IOException- Signals that an I/O exception has occurred.
-
skip
Skip.- Specified by:
skipin interfaceRemoteInputStream- Parameters:
n- the n- Returns:
- the long
- 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 interfaceRemoteInputStream- Throws:
IOException- If an error occurs during closing.
-