|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.util.SocketChannel
public class SocketChannel
SocketChannel provides a communication channel for Java objects using TCP/IP sockets. Refactored for java.util.concurrent.
Constructor Summary | |
---|---|
SocketChannel(java.net.Socket s)
Constructs a socket channel on the given socket s. |
Method Summary | |
---|---|
void |
close()
Closes the channel. |
java.net.Socket |
getSocket()
Get the Socket |
java.lang.Object |
receive()
Receives an object |
void |
send(java.lang.Object v)
Sends an object |
java.lang.String |
toString()
to string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SocketChannel(java.net.Socket s) throws java.io.IOException
s
- A socket object.
java.io.IOException
Method Detail |
---|
public java.net.Socket getSocket()
public void send(java.lang.Object v) throws java.io.IOException
java.io.IOException
public java.lang.Object receive() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void close()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |