|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for instantiators of IDs
| Method Summary | |
ID |
fromURL(java.net.URL source)
Construct a new ID instance from a JXTA ID contained in a URI. |
java.lang.String |
getSupportedIDFormat()
Returns the ID format value associated with this ID format |
CodatID |
newCodatID(PeerGroupID groupID)
Creates a new CodatID Instance. |
CodatID |
newCodatID(PeerGroupID groupID,
java.io.InputStream in)
Creates a new CodatID Instance. |
ModuleClassID |
newModuleClassID()
Creates a new ModuleClassID Instance. |
ModuleClassID |
newModuleClassID(ModuleClassID baseClass)
Creates a new ModuleClassID Instance. |
ModuleSpecID |
newModuleSpecID(ModuleClassID baseClass)
Creates a new ModuleClassID Instance. |
PeerGroupID |
newPeerGroupID()
Creates a new PeerGroupID Instance. |
PeerID |
newPeerID(PeerGroupID groupID)
Creates a new PeerID Instance. |
PipeID |
newPipeID(PeerGroupID groupID)
Creates a new PeerGroupID Instance. |
PipeID |
newPipeID(PeerGroupID groupID,
byte[] seed)
Creates a new PipeID Instance. |
| Method Detail |
public java.lang.String getSupportedIDFormat()
public ID fromURL(java.net.URL source)
throws java.net.MalformedURLException,
java.net.UnknownServiceException
source - URI which will be decoded to create a new ID instance.java.net.UnknownServiceException - Is thrown if the URI provided is of a
format unrecognized by this JXTA implementation.java.net.MalformedURLException - Is thrown if the URI provided is not
a valid, recognized JXTA URI.ID,
URLpublic CodatID newCodatID(PeerGroupID groupID)
groupID - the group to which this content will belong.CodatID
public CodatID newCodatID(PeerGroupID groupID,
java.io.InputStream in)
throws java.io.IOException
groupID - The group to which this ID will belong.in - The InputStream from which the content hash is calculated.
The stream is read until EOF and then closed.java.io.IOException - I/O Error reading documentCodatIDpublic PeerID newPeerID(PeerGroupID groupID)
groupID - the group to which this PeerID will belong.PeerIDpublic PeerGroupID newPeerGroupID()
PeerGroupIDpublic PipeID newPipeID(PeerGroupID groupID)
groupID - the group to which this Pipe ID will belong.PeerGroupID
public PipeID newPipeID(PeerGroupID groupID,
byte[] seed)
groupID - the group to which this Pipe ID will belong.seed - The seed information which will be used in creating the
pipeID.PipeIDpublic ModuleClassID newModuleClassID()
ModuleClassIDpublic ModuleClassID newModuleClassID(ModuleClassID baseClass)
baseClass - The module class ID which will be used as a base
class for this new role value instance.ModuleClassIDpublic ModuleSpecID newModuleSpecID(ModuleClassID baseClass)
baseClass - The module class ID which will be used as a base
class for this new Spec ID.ModuleSpecID
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||