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:
| 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 |
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 |
|
| Method Summary |
public boolean |
{@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 |
protected String id
The id data
private final static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(CodatBinaryID.class.getName())
LOG object for this class.
protected CodatBinaryID()
Used only internally
public CodatBinaryID(String id)
Creates a ID from a string. Note that the ID is not currently validated.
Parameters:
id Value of ID.
Constructor. Intializes contents from provided ID.
Parameters:
id the ID data
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!
public CodatBinaryID(net.jxta.peergroup.PeerGroupID groupID, byte [] seed, InputStream in)
public CodatBinaryID(PeerGroupID groupID, InputStream in)
public boolean equals(Object target)
{@inheritDoc}
protected String getID()
returns the coded ID without the binaryid tag.
Return:
Returns the raw string used to create the urn!
public String getIDFormat()
{@inheritDoc}
public net.jxta.id.ID getPeerGroupID()
{@inheritDoc}
public Object getUniqueValue()
{@inheritDoc}
public URL getURL()
{@inheritDoc}
public int hashCode()
{@inheritDoc}
public boolean isStatic()
{@inheritDoc}
Binary ID only supports static