public class InetAddrPort extends Object implements Serializable
| Constructor and Description | 
|---|
| InetAddrPort() | 
| InetAddrPort(InetAddress addr,
            int port)Constructor. | 
| InetAddrPort(InetAddrPort address)Constructor. | 
| InetAddrPort(int port)Constructor for a port on all local host address. | 
| InetAddrPort(String inetAddrPort)Constructor. | 
| InetAddrPort(String host,
            int port)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | clone()Clone the InetAddrPort. | 
| boolean | equals(Object o)Equals. | 
| String | getHost()Get the Host. | 
| InetAddress | getInetAddress()Get the IP address. | 
| int | getPort()Get the port. | 
| int | hashCode()Hash Code. | 
| void | setHost(String host)Set the Host. | 
| void | setInetAddress(InetAddress addr)Set the IP address. | 
| void | setPort(int port)Set the port. | 
| String | toString() | 
public static final String __0_0_0_0
public InetAddrPort()
public InetAddrPort(int port)
port - public InetAddrPort(InetAddress addr, int port)
addr - port - public InetAddrPort(String host, int port) throws UnknownHostException
host - port - UnknownHostExceptionpublic InetAddrPort(String inetAddrPort) throws UnknownHostException
inetAddrPort - String of the form "addr:port"UnknownHostExceptionpublic InetAddrPort(InetAddrPort address)
address - InetAddrPort top copy.public String getHost()
public void setHost(String host) throws UnknownHostException
host - UnknownHostExceptionpublic InetAddress getInetAddress()
public void setInetAddress(InetAddress addr)
addr - The IP addresspublic int getPort()
public void setPort(int port)
port - The port numberpublic Object clone()
Copyright © 2014. All rights reserved.