JXTA

net.jxta.impl.id.CBID
Class PipeID

java.lang.Object
  extended by net.jxta.id.ID
      extended by net.jxta.pipe.PipeID
          extended by net.jxta.impl.id.UUID.PipeID
              extended by net.jxta.impl.id.CBID.PipeID
All Implemented Interfaces:
Serializable

public class PipeID
extends PipeID

An implementation of the PipeID ID Type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.jxta.impl.id.UUID.PipeID
groupIdOffset, id, idOffset, padOffset, padSize
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
protected PipeID()
          Used only internally
protected PipeID(IDBytes id)
          Constructor.
  PipeID(PeerGroupID groupID)
          See IDFactory.Instantiator.newPipeID(net.jxta.peergroup.PeerGroupID).
  PipeID(PeerGroupID groupID, byte[] seed)
          See IDFactory.Instantiator.newPipeID(net.jxta.peergroup.PeerGroupID,byte[]).
protected PipeID(UUID groupUUID, UUID idUUID)
          Creates a PipeID.
 
Method Summary
 String getIDFormat()
          Returns a string identifier which indicates which ID format is used by this ID instance.
 ID getPeerGroupID()
          Returns PeerGroupID of the Peer Group to which this Pipe ID belongs.
 UUID getUUID()
          Returns the UUID associated with this PipeID.
 
Methods inherited from class net.jxta.impl.id.UUID.PipeID
equals, getUniqueValue, hashCode
 
Methods inherited from class net.jxta.pipe.PipeID
create, intern
 
Methods inherited from class net.jxta.id.ID
getURL, toString, toURI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PipeID

protected PipeID()
Used only internally


PipeID

protected PipeID(IDBytes id)
Constructor. Intializes contents from provided ID.

Parameters:
id - the ID data

PipeID

protected PipeID(UUID groupUUID,
                 UUID idUUID)
Creates a PipeID. A PeerGroupID is provided

Parameters:
groupUUID - the UUID of the group to which this will belong.
idUUID - the UUID which will be used for this pipe.

PipeID

public PipeID(PeerGroupID groupID)
See IDFactory.Instantiator.newPipeID(net.jxta.peergroup.PeerGroupID).

Parameters:
groupID - the PeerGroupID

PipeID

public PipeID(PeerGroupID groupID,
              byte[] seed)
See IDFactory.Instantiator.newPipeID(net.jxta.peergroup.PeerGroupID,byte[]).

Parameters:
groupID - the PeerGroupID
seed - the seed
Method Detail

getIDFormat

public String getIDFormat()
Returns a string identifier which indicates which ID format is used by this ID instance.

Overrides:
getIDFormat in class PipeID
Returns:
a string identifier which indicates which ID format is used by this ID instance.

getPeerGroupID

public ID getPeerGroupID()
Returns PeerGroupID of the Peer Group to which this Pipe ID belongs.

Overrides:
getPeerGroupID in class PipeID
Returns:
The PeerGroupID of the Peer Group to which this Pipe ID belongs.

getUUID

public UUID getUUID()
Returns the UUID associated with this PipeID.

Returns:
The UUID associated with this PipeID.

JXSE