JXTA

net.jxta.impl.id.CBID
Class CodatID

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

public class CodatID
extends CodatID

An implementation of the CodatID ID Type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.jxta.impl.id.UUID.CodatID
codatHashOffset, groupIdOffset, hashSize, id, idOffset, padOffset, padSize
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
protected CodatID()
          Internal constructor
protected CodatID(IDBytes id)
          Intializes contents from provided bytes.
  CodatID(PeerGroupID groupID)
          See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID).
  CodatID(PeerGroupID groupID, byte[] seed)
          See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,byte[]).
  CodatID(PeerGroupID groupID, byte[] seed, InputStream in)
          See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,InputStream).
  CodatID(PeerGroupID groupID, InputStream in)
          See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,InputStream).
 
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 Codat ID belongs.
 UUID getUUID()
          Returns the UUID associated with this CodatID.
 
Methods inherited from class net.jxta.impl.id.UUID.CodatID
equals, getUniqueValue, hashCode, isStatic, setHash
 
Methods inherited from class net.jxta.codat.CodatID
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

CodatID

protected CodatID()
Internal constructor


CodatID

protected CodatID(IDBytes id)
Intializes contents from provided bytes.

Parameters:
id - the ID data

CodatID

public CodatID(PeerGroupID groupID)
See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID).

Parameters:
groupID - the GroupID

CodatID

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

Parameters:
groupID - the GroupID
seed - the seed

CodatID

public CodatID(PeerGroupID groupID,
               InputStream in)
        throws IOException
See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,InputStream).

Parameters:
groupID - the GroupID
in - the input stream
Throws:
IOException - if an io error occurs

CodatID

public CodatID(PeerGroupID groupID,
               byte[] seed,
               InputStream in)
        throws IOException
See IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,InputStream).

Parameters:
groupID - the GroupID
seed - the seed
in - the input stream
Throws:
IOException - if an io error occurs
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 CodatID
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 Codat ID belongs.

Overrides:
getPeerGroupID in class CodatID
Returns:
PeerGroupID of the Peer Group which this ID is part of.

getUUID

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

Returns:
The UUID associated with this CodatID.

JXSE