Project JXTA

net.jxta.impl.id.UUID
Class PipeID

java.lang.Object
  extended bynet.jxta.id.ID
      extended bynet.jxta.pipe.PipeID
          extended bynet.jxta.impl.id.UUID.PipeID
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PipeID

public class PipeID
extends PipeID

An implementation of the PipeID ID Type.

See Also:
Serialized Form

Field Summary
protected static int groupIdOffset
           
protected  IDBytes id
          The id data
protected static int idOffset
           
protected static int padOffset
           
protected static int 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
 boolean equals(Object target)
          
 String getIDFormat()
          
 ID getPeerGroupID()
          
 Object getUniqueValue()
          
 URL getURL()
          
 int hashCode()
          
 URI toURI()
          
 
Methods inherited from class net.jxta.id.ID
clone, create, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

groupIdOffset

protected static final int groupIdOffset
See Also:
Constant Field Values

idOffset

protected static final int idOffset
See Also:
Constant Field Values

padOffset

protected static final int padOffset
See Also:
Constant Field Values

padSize

protected static final int padSize
See Also:
Constant Field Values

id

protected IDBytes id
The id data

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).


PipeID

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

Method Detail

equals

public boolean equals(Object target)


hashCode

public int hashCode()


getIDFormat

public String getIDFormat()


getUniqueValue

public Object getUniqueValue()


getURL

public URL getURL()


getPeerGroupID

public ID getPeerGroupID()


toURI

public URI toURI()


JXTA J2SE