net.sf.jbaobab.helper
Class IOHelper

java.lang.Object
  extended by net.sf.jbaobab.helper.IOHelper

public final class IOHelper
extends Object

A simple helper class for java.net related stuff.

Author:
Oakyoon Cha

Method Summary
static String hostAddress(ServerSocketChannel channel)
           
static String hostAddress(SocketChannel channel)
           
static String hostName(ServerSocketChannel channel)
           
static String hostName(SocketChannel channel)
           
static int port(ServerSocketChannel channel)
           
static int port(SocketChannel channel)
           
static ServerSocketChannel serverChannel(int port)
           
static InetSocketAddress socketAddress(String host, int port)
           
static String track(SocketChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)