|
Project 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 begining 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)
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) . |
protected |
CodatID(UUID groupUUID,
UUID idUUID)
|
Method Summary | |
---|---|
boolean |
equals(Object target)
|
String |
getIDFormat()
|
ID |
getPeerGroupID()
|
Object |
getUniqueValue()
|
URL |
getURL()
|
int |
hashCode()
|
boolean |
isStatic()
|
protected void |
setHash(InputStream in)
Calculates the SHA-1 hash of a stream. |
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 |
---|
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()
getUniqueValue
in class ID
public URL getURL()
getURL
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
public URI toURI()
toURI
in class ID
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |