Package org.alfresco.util.remote.server
Class RmiRemoteInputStreamServer
- java.lang.Object
-
- org.alfresco.util.remote.server.AbstractRemoteInputStreamServer
-
- org.alfresco.util.remote.server.RmiRemoteInputStreamServer
-
- All Implemented Interfaces:
RemoteInputStreamServer
public class RmiRemoteInputStreamServer extends AbstractRemoteInputStreamServer
Concrete implementation of a remoting InputStream based on RMI.- Since:
- Alfresco 2.2
- Author:
- Michael Shavnev
-
-
Field Summary
-
Fields inherited from class org.alfresco.util.remote.server.AbstractRemoteInputStreamServer
inputStream
-
-
Constructor Summary
Constructors Constructor Description RmiRemoteInputStreamServer(java.io.InputStream inputStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the stream and the RMI connection to the peer.static RemoteInputStreamServerobtain(java.lang.String host, int port, java.lang.String name)Utility method to lookup a remote stream peer over RMI.java.lang.Stringstart(java.lang.String host, int port)-
Methods inherited from class org.alfresco.util.remote.server.AbstractRemoteInputStreamServer
available, mark, markSupported, read, read, read, reset, skip
-
-
-
-
Method Detail
-
start
public java.lang.String start(java.lang.String host, int port) throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
close
public void close() throws java.io.IOExceptionCloses the stream and the RMI connection to the peer.- Specified by:
closein interfaceRemoteInputStreamServer- Overrides:
closein classAbstractRemoteInputStreamServer- Throws:
java.io.IOException
-
obtain
public static RemoteInputStreamServer obtain(java.lang.String host, int port, java.lang.String name) throws java.rmi.RemoteException
Utility method to lookup a remote stream peer over RMI.- Throws:
java.rmi.RemoteException
-
-