Class CodatBinaryID
package: src.net.jxta.impl.id.binaryID
net.jxta.impl.id.binaryID.CodatBinaryID
public final class CodatBinaryID
Extends:
net.jxta.codat.CodatID
This class implements a Pipe ID. Each pipe is assigned a unique id.
See Also:
net.jxta.id.ID, net.jxta.id.IDFactory, net.jxta.peergroup.PeerGroupID
Author:
Daniel Brookshier turbogeek@cluck.com
Field Summary
protected String
   The id data
 
private final static org.apache.log4j.Logger
   LOG object for this class.
 
Constructor Summary
protected
   Used only internally
 
public
CodatBinaryID(String id)
   Creates a ID from a string.
 
public
   Constructor.
 
public
CodatBinaryID(net.jxta.peergroup.PeerGroupID parent, byte[] data, boolean lengthIncluded)
   Constructor.
 
public
CodatBinaryID(net.jxta.peergroup.PeerGroupID groupID, byte [] seed, InputStream in)
public
CodatBinaryID(PeerGroupID groupID, InputStream in)
Method Summary
public boolean
equals(Object target)
   {@inheritDoc}
 
protected String
   returns the coded ID without the binaryid tag.
 
public String
   {@inheritDoc}
 
public net.jxta.id.ID
   {@inheritDoc}
 
public Object
   {@inheritDoc}
 
public URL
   {@inheritDoc}
 
public int
   {@inheritDoc}
 
public boolean
   {@inheritDoc} Binary ID only supports static
 
Field Detail
id
protected String id
The id data

LOG
private final static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(CodatBinaryID.class.getName())
LOG object for this class.
Constructor Detail
CodatBinaryID
protected CodatBinaryID()
Used only internally

CodatBinaryID
public CodatBinaryID(String id)
Creates a ID from a string. Note that the ID is not currently validated.
Parameters:
id Value of ID.

CodatBinaryID
public CodatBinaryID(BinaryID id)
Constructor. Intializes contents from provided ID.
Parameters:
id the ID data

CodatBinaryID
public CodatBinaryID(net.jxta.peergroup.PeerGroupID parent, byte[] data, boolean lengthIncluded)
Constructor. Creates a PipeID. A PeerGroupID is provided. Note that only the peer group's primary node is used to build this node. We don't want to be appending great grand parents.
Parameters:
parent the group to which this will belong.
data DOCUMENT ME!
lengthIncluded DOCUMENT ME!

CodatBinaryID
public CodatBinaryID(net.jxta.peergroup.PeerGroupID groupID, byte [] seed, InputStream in)

CodatBinaryID
public CodatBinaryID(PeerGroupID groupID, InputStream in)
Method Detail
equals
public boolean equals(Object target)
{@inheritDoc}

getID
protected String getID()
returns the coded ID without the binaryid tag.
Return:
Returns the raw string used to create the urn!

getIDFormat
public String getIDFormat()
{@inheritDoc}

getPeerGroupID
public net.jxta.id.ID getPeerGroupID()
{@inheritDoc}

getUniqueValue
public Object getUniqueValue()
{@inheritDoc}

getURL
public URL getURL()
{@inheritDoc}

hashCode
public int hashCode()
{@inheritDoc}

isStatic
public boolean isStatic()
{@inheritDoc} Binary ID only supports static