|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object netcom.util.AddressPort
Title: This is a class in Java 1.4 recreated here for 1.3 compatibility
Description: Tries to copy Java 1.4's InetSocketAddress
Company:
Constructor Summary | |
AddressPort(java.net.InetAddress address,
int port)
Constructor which takes a premade InetAddress and port |
|
AddressPort(java.lang.String input_str)
Constructor which takes a strin of the form AddressPort.toString() to create a new AddressPort object |
|
AddressPort(java.lang.String hostname,
int port)
Constructor which takes a String and a port... |
Method Summary | |
java.net.InetAddress |
getAddress()
|
java.lang.String |
getHostName()
|
int |
getPort()
|
java.lang.String |
toString()
Override toString() in object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AddressPort(java.net.InetAddress address, int port)
address
- the premade InetAddressport
- the portpublic AddressPort(java.lang.String hostname, int port)
hostname
- the host's name (IP or dns)port
- the portpublic AddressPort(java.lang.String input_str)
input_str
- the input .toString() stringMethod Detail |
public int getPort()
public java.net.InetAddress getAddress()
public java.lang.String getHostName()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |