|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.id.UUID.IDFormat
public class IDFormat
A general purpose JXTA ID Format implementing all of the six standard ID Types. It was originally created for the Java 2 SE reference implementation. The 'uuid' format uses (IETF version 4) randomly generated UUIDs as the mechanism for generating canonical values for the ids it provides.
For IDs constructed using "seed" variant constructors, the first 16 bytes of the seed are used literally as the UUID value. The value is masked to make it a valid version 4 IETF variant UUID.
ID
,
JXTA Protocols Specification : IDs,
JXTA Protocols Specification : UUID ID FormatField Summary | |
---|---|
static PeerGroupID |
defaultNetPeerGroupID
Our local version of the net Peer Group ID. |
static byte |
flagCodatID
Type value for Codat |
static byte |
flagCodatID7
Type value for CodatID |
static byte |
flagModuleClassID
Type value for ModuleClass |
static byte |
flagModuleSpecID
Type value for ModuleSpec |
static byte |
flagPeerGroupID
Type value for PeerGroup |
static byte |
flagPeerID
Type value for Peer |
static byte |
flagPipeID
Type value for Pipe |
static int |
flagsIdTypeOffset
Location of the type field within the flags field |
static int |
flagsOffset
Location of ID flags within byte array. |
static int |
flagsSize
The size of the flags field |
static int |
IdByteArraySize
number of bytes in the byte array |
static IDFactory.Instantiator |
INSTANTIATOR
The instantiator for this ID Format which is used by the IDFactory. |
static int |
uuidSize
The size of a UUID in bytes |
static PeerGroupID |
worldPeerGroupID
Our local version of the world Peer Group ID. |
Constructor Summary | |
---|---|
protected |
IDFormat()
This class cannot be instantiated. |
Method Summary | |
---|---|
(package private) static ID |
translateFromWellKnown(ID input)
Translate from well known ID to our locally encoded versions. |
(package private) static ID |
translateToWellKnown(ID input)
Translate from locally encoded versions to the well known versions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IdByteArraySize
public static final int uuidSize
public static final int flagsSize
public static final int flagsIdTypeOffset
public static final byte flagCodatID
public static final byte flagPeerGroupID
public static final byte flagPeerID
public static final byte flagPipeID
public static final byte flagModuleClassID
public static final byte flagModuleSpecID
public static final byte flagCodatID7
public static final int flagsOffset
public static final PeerGroupID worldPeerGroupID
public static final PeerGroupID defaultNetPeerGroupID
public static final IDFactory.Instantiator INSTANTIATOR
Constructor Detail |
---|
protected IDFormat()
Method Detail |
---|
static ID translateFromWellKnown(ID input)
input
- the id to be translated.
static ID translateToWellKnown(ID input)
input
- the id to be translated.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |