public final class InetSocketTransportAddress extends Object implements TransportAddress
InetSocketAddress).| 修飾子とタイプ | フィールドと説明 |
|---|---|
static InetSocketTransportAddress |
PROTO |
| コンストラクタと説明 |
|---|
InetSocketTransportAddress(InetAddress address,
int port) |
InetSocketTransportAddress(InetSocketAddress address) |
InetSocketTransportAddress(StreamInput in) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
InetSocketAddress |
address() |
boolean |
equals(Object o) |
String |
getAddress()
Returns the address string for this transport address
|
String |
getHost()
Returns the host string for this transport address
|
int |
getPort()
Returns the port of this transport address if applicable
|
int |
hashCode() |
TransportAddress |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
boolean |
sameHost(TransportAddress other) |
String |
toString() |
short |
uniqueAddressTypeId() |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
public static final InetSocketTransportAddress PROTO
public InetSocketTransportAddress(StreamInput in) throws IOException
IOExceptionpublic InetSocketTransportAddress(InetAddress address, int port)
public InetSocketTransportAddress(InetSocketAddress address)
public short uniqueAddressTypeId()
uniqueAddressTypeId インタフェース内 TransportAddresspublic boolean sameHost(TransportAddress other)
sameHost インタフェース内 TransportAddresspublic String getHost()
TransportAddressgetHost インタフェース内 TransportAddresspublic String getAddress()
TransportAddressgetAddress インタフェース内 TransportAddresspublic int getPort()
TransportAddressgetPort インタフェース内 TransportAddresspublic InetSocketAddress address()
public TransportAddress readFrom(StreamInput in) throws IOException
StreamableReaderreadFrom インタフェース内 StreamableReader<TransportAddress>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
WriteablewriteTo インタフェース内 Writeable<TransportAddress>IOExceptionpublic String toString()
toString インタフェース内 TransportAddresstoString クラス内 ObjectCopyright © 2009–2016. All rights reserved.