DCT Lightfoot v3 API specification

com.dctl.j2me.net
Class Address

java.lang.Object
  |
  +--com.dctl.j2me.net.Address

public class Address
extends Object

Addresses are dealt with as ints


Constructor Summary
Address()
           
 
Method Summary
static java.lang.String convertAddress(int addr)
          Convert an integer IP address to a string representation
static int getAddress(java.lang.String hostname)
          Convert a hostname to an address
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

getAddress

public static int getAddress(java.lang.String hostname)
                      throws IllegalArgumentException
Convert a hostname to an address

Parameters:
hostname - The hostname
Returns:
the address
Throws:
IllegalArgumentException - if the address is invalid

convertAddress

public static java.lang.String convertAddress(int addr)
Convert an integer IP address to a string representation

Parameters:
addr - The address to convert
Returns:
the string representation

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification