|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsystem.NetworkUtil
public class NetworkUtil
Network utility functions. These are designed to be real simple methods that read and write Strings that end with '\n' from/to a SocketChannel.
Constructor Summary | |
---|---|
NetworkUtil()
|
Method Summary | |
---|---|
static java.lang.String |
readMessage(java.nio.channels.SocketChannel channel)
Network read message. |
static void |
sendMessage(java.nio.channels.SocketChannel channel,
java.lang.String message)
Send message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkUtil()
Method Detail |
---|
public static java.lang.String readMessage(java.nio.channels.SocketChannel channel) throws java.io.IOException
channel
-
java.io.IOException
public static void sendMessage(java.nio.channels.SocketChannel channel, java.lang.String message) throws java.io.IOException
channel
- message
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |