com.liviutudor.rmi.io.gzip
Class BlockingGzipClientSocketFactory
java.lang.Object
com.liviutudor.rmi.io.gzip.BlockingGzipClientSocketFactory
- All Implemented Interfaces:
- RMIClientSocketFactory
public class BlockingGzipClientSocketFactory
- extends Object
- implements RMIClientSocketFactory
Class which implements a client RMI socket factory which gzip's the
communication in between client and server. This implementation still uses
the "old" blocking IO classes. It uses under the cover a GzipSocket
.
- Author:
- Liviu Tudor http://about.me/liviutudor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockingGzipClientSocketFactory
public BlockingGzipClientSocketFactory()
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Creates a socket which will gzip encode the communication.
- Specified by:
createSocket
in interface RMIClientSocketFactory
- Parameters:
host
- Host this client socket is to connect toport
- Port on which the client needs to connect to
- Returns:
- an instance of
GzipSocket
connected to the given
host/port
- Throws:
IOException
- if I/O errors occur connecting to the host
Liv