net.sf.jbaobab.helper
Class IOHelper
java.lang.Object
net.sf.jbaobab.helper.IOHelper
public final class IOHelper
- extends Object
A simple helper class for java.net
related stuff.
- Author:
- Oakyoon Cha
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverChannel
public static ServerSocketChannel serverChannel(int port)
throws IOException
- Throws:
IOException
socketAddress
public static InetSocketAddress socketAddress(String host,
int port)
throws UnknownHostException
- Throws:
UnknownHostException
port
public static int port(ServerSocketChannel channel)
hostAddress
public static String hostAddress(ServerSocketChannel channel)
hostName
public static String hostName(ServerSocketChannel channel)
port
public static int port(SocketChannel channel)
hostAddress
public static String hostAddress(SocketChannel channel)
hostName
public static String hostName(SocketChannel channel)
track
public static String track(SocketChannel channel)