org.prevayler.foundation.network
Class ObjectSocketImpl

java.lang.Object
  extended by org.prevayler.foundation.network.ObjectSocketImpl
All Implemented Interfaces:
ObjectSocket

public class ObjectSocketImpl
extends Object
implements ObjectSocket


Constructor Summary
ObjectSocketImpl(Socket socket)
           
ObjectSocketImpl(String serverIpAddress, int serverPort)
           
 
Method Summary
 void close()
           
 Object readObject()
           
 void writeObject(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSocketImpl

public ObjectSocketImpl(String serverIpAddress,
                        int serverPort)
                 throws IOException
Throws:
IOException

ObjectSocketImpl

public ObjectSocketImpl(Socket socket)
                 throws IOException
Throws:
IOException
Method Detail

writeObject

public void writeObject(Object object)
                 throws IOException
Specified by:
writeObject in interface ObjectSocket
Throws:
IOException

readObject

public Object readObject()
                  throws IOException,
                         ClassNotFoundException
Specified by:
readObject in interface ObjectSocket
Throws:
IOException
ClassNotFoundException

close

public void close()
           throws IOException
Specified by:
close in interface ObjectSocket
Throws:
IOException


Copyright © 2001-2013. All Rights Reserved.