|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgroup.relacs.types.EndPointImpl
public class EndPointImpl
| Field Summary | |
|---|---|
protected java.net.InetAddress |
address
Internet address |
protected boolean |
local
True if this endpoint is the local endpoint; false otherwise |
protected int |
port
Port number |
static int |
SIZE
Size of this object (in bytes) when marshalled. |
| Constructor Summary | |
|---|---|
EndPointImpl()
Default constructor for externalization |
|
EndPointImpl(java.net.InetAddress address,
int port)
Constructs a new endpoint for the specified internet address and port number. |
|
EndPointImpl(int packedAddress,
int port)
Constructs a new endpoint for the internet address specified as integer, and the specified port number. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
Compares two EndPointImpl objects for content
equality. |
java.net.InetAddress |
getAddress()
Returns the InetAddress associated to this endpoint. |
int |
getIntAddress()
Returns the IP address contained in this endpoint, enclosed in an integer value. |
int |
getPort()
Return the port number associated to this end point |
int |
hashCode()
|
boolean |
isLocal()
Returns true if this endpoint is the local endpoint. |
boolean |
isMulticastEndPoint()
Return true if this endpoint is a multicast endpoint. |
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
java.lang.String |
toString()
Returns a string representation of this object |
void |
writeExternal(java.io.ObjectOutput out)
Marshals the content of this object to the specified output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE
protected java.net.InetAddress address
protected int port
protected boolean local
| Constructor Detail |
|---|
public EndPointImpl()
public EndPointImpl(java.net.InetAddress address,
int port)
public EndPointImpl(int packedAddress,
int port)
| Method Detail |
|---|
public java.net.InetAddress getAddress()
InetAddress associated to this endpoint.
If needed, performs the translation between the integer version
of the address and the InetAddress version.
getAddress in interface EndPointpublic int getPort()
getPort in interface EndPointpublic int getIntAddress()
EndPoint
getIntAddress in interface EndPointpublic boolean isMulticastEndPoint()
EndPoint
isMulticastEndPoint in interface EndPointpublic boolean isLocal()
EndPoint
isLocal in interface EndPointpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
EndPointImpl objects for content
equality.
equals in class java.lang.Objectobj - The object to compare this object with.
public java.lang.String toString()
toString in class java.lang.Object
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.Externalizablein - the stream to be read
java.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to be written
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||