|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.id.ID
net.jxta.codat.CodatID
net.jxta.impl.id.UUID.CodatID
public class CodatID
An implementation of the CodatID
ID Type.
Field Summary | |
---|---|
protected static int |
codatHashOffset
Location of the hash value portion of the id within the byte array. |
protected static int |
groupIdOffset
Location of the group id in the byte array. |
protected static int |
hashSize
size of a SHA1 hash. |
protected IDBytes |
id
The id data |
protected static int |
idOffset
Location of the randomly chosen portion of the id within the byte array. |
protected static int |
padOffset
Location of the beginning of pad (unused space) within the byte array. |
protected static int |
padSize
Size of the pad. |
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
protected |
CodatID()
Internal constructor |
protected |
CodatID(IDBytes id)
Initializes 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) . |
protected |
CodatID(UUID groupUUID,
UUID idUUID)
|
Method Summary | |
---|---|
boolean |
equals(Object target)
|
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. |
Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
int |
hashCode()
|
boolean |
isStatic()
Returns true if this CodatID is associated with a static Codat. |
protected void |
setHash(InputStream in)
Calculates the SHA-1 hash of a stream. |
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 |
Field Detail |
---|
protected static final int hashSize
protected static final int groupIdOffset
protected static final int idOffset
protected static final int codatHashOffset
protected static final int padOffset
protected static final int padSize
protected IDBytes id
Constructor Detail |
---|
protected CodatID()
protected CodatID(IDBytes id)
id
- the ID dataprotected CodatID(UUID groupUUID, UUID idUUID)
public CodatID(PeerGroupID groupID)
IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID)
.
public CodatID(PeerGroupID groupID, byte[] seed)
IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,byte[])
.
public CodatID(PeerGroupID groupID, InputStream in) throws IOException
IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,InputStream)
.
IOException
public CodatID(PeerGroupID groupID, byte[] seed, InputStream in) throws IOException
IDFactory.Instantiator.newCodatID(net.jxta.peergroup.PeerGroupID,InputStream)
.
IOException
Method Detail |
---|
public boolean equals(Object target)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getIDFormat()
getIDFormat
in class ID
public Object getUniqueValue()
this
.
getUniqueValue
in class ID
public ID getPeerGroupID()
getPeerGroupID
in class CodatID
public boolean isStatic()
isStatic
in class CodatID
protected void setHash(InputStream in) throws IOException
in
- The InputStream.
IOException
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |