|
Project JXTA | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.jxta.id.ID
net.jxta.peergroup.PeerGroupID
net.jxta.impl.id.binaryID.PeerGroupBinaryID
This class implements a PeerGroup ID. Each peer group is assigned a unique peer id.BinaryID id are used to implement peer group id. Because this id is built with BinaryID, pulling the parent group requires a little work. The parent group is the first id, with the second following, seperated by a dash '-' character.
ID,
IDFactory,
net.jxta.impl.id.BinaryID.BinaryID,
net.jxta.impl.id.BinaryID.BinaryIDFactory,
PeerGroupID,
Serialized Form| Field Summary | |
protected String |
id
This is the id string used in the XML of the id. |
| Fields inherited from class net.jxta.peergroup.PeerGroupID |
defaultNetPeerGroupID, worldPeerGroupID |
| Fields inherited from class net.jxta.id.ID |
nullID, URIEncodingName, URNNamespace |
| Constructor Summary | |
|
PeerGroupBinaryID()
Constructor for creating a new PeerGroupID. |
|
PeerGroupBinaryID(BinaryID id)
Constructor. |
|
PeerGroupBinaryID(byte[] data,
boolean lengthIncluded)
Constructor for creating a new PeerGroupID with a unique ID and a parent. |
|
PeerGroupBinaryID(PeerGroupID parent,
byte[] data,
boolean lengthIncluded)
Constructor for creating a new PeerGroupID with a unique ID and a parent. |
protected |
PeerGroupBinaryID(String id)
Creates a ID from a string. |
| Method Summary | |
boolean |
equals(Object target)
|
protected String |
getID()
returns the coded ID without the binaryid tag. |
String |
getIDFormat()
|
PeerGroupID |
getParentPeerGroupID()
|
ID |
getPeerGroupID()
{@inheritDoc} |
Object |
getUniqueValue()
|
URL |
getURL()
|
int |
hashCode()
|
| Methods inherited from class net.jxta.peergroup.PeerGroupID |
|
| Methods inherited from class net.jxta.id.ID |
clone, create, toString, toURI |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected String id
| Constructor Detail |
public PeerGroupBinaryID(PeerGroupID parent,
byte[] data,
boolean lengthIncluded)
Note that only the ID for the parent is obtained and not the parent and the grandparent.
parent - Parent peer group.data - data byte array to be used as the id.lengthIncluded - If true, the first byte in the data array is the length of the remaining bytes.protected PeerGroupBinaryID(String id)
id - Value of ID.
public PeerGroupBinaryID(byte[] data,
boolean lengthIncluded)
data - DOCUMENT ME!lengthIncluded - DOCUMENT ME!public PeerGroupBinaryID()
public PeerGroupBinaryID(BinaryID id)
id - the ID data| Method Detail |
public boolean equals(Object target)
public int hashCode()
public String getIDFormat()
public Object getUniqueValue()
public URL getURL()
public ID getPeerGroupID()
public PeerGroupID getParentPeerGroupID()
protected String getID()
|
JXTA J2SE | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||