|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface IDFactory.Instantiator
Interface for instantiators of IDs. Each ID Format registered with the ID Factory implements a class with this interface.
Method Summary | |
---|---|
ID |
fromURI(URI source)
Construct a new ID instance from a JXTA ID contained in a URI. |
ID |
fromURL(URL source)
Deprecated. Convert to fromURI . |
ID |
fromURNNamespaceSpecificPart(String source)
Construct a new ID instance from the scheme specific portion of a jxta URN. |
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,
byte[] seed)
Creates a new CodatID instance. |
CodatID |
newCodatID(PeerGroupID groupID,
byte[] seed,
InputStream in)
Creates a new CodatID instance. |
CodatID |
newCodatID(PeerGroupID groupID,
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 ModuleSpecID instance. |
PeerGroupID |
newPeerGroupID()
Creates a new PeerGroupID instance. |
PeerGroupID |
newPeerGroupID(byte[] seed)
Creates a new PeerGroupID instance. |
PeerGroupID |
newPeerGroupID(PeerGroupID parent)
Creates a new PeerGroupID instance with the specified parent group. |
PeerGroupID |
newPeerGroupID(PeerGroupID parent,
byte[] seed)
Creates a new PeerGroupID instance with the specified parent group. |
PeerID |
newPeerID(PeerGroupID groupID)
Creates a new PeerID instance. |
PeerID |
newPeerID(PeerGroupID groupID,
byte[] seed)
Creates a new PeerID instance. |
PipeID |
newPipeID(PeerGroupID groupID)
Creates a new PipeID instance. |
PipeID |
newPipeID(PeerGroupID groupID,
byte[] seed)
Creates a new PipeID instance. |
Method Detail |
---|
String getSupportedIDFormat()
@Deprecated ID fromURL(URL source) throws MalformedURLException, UnknownServiceException
fromURI
.
source
- URL which will be decoded to create a new ID instance.
UnknownServiceException
- Is thrown if the URL provided is of
a format unrecognized by this JXTA implementation.
MalformedURLException
- Is thrown if the URL provided is not
a valid, recognized JXTA URL.ID fromURI(URI source) throws URISyntaxException
source
- URI which will be decoded to create a new ID instance.
URISyntaxException
- if the URI provided is not a valid,
recognized JXTA URI.ID fromURNNamespaceSpecificPart(String source) throws URISyntaxException
source
- the scheme specific portion of a jxta URN.
URISyntaxException
- if the URI provided is not a valid,
recognized JXTA URI.CodatID newCodatID(PeerGroupID groupID)
groupID
- The group to which this content will belong.
Codat
CodatID newCodatID(PeerGroupID groupID, byte[] seed)
groupID
- The group to which this content will belong.seed
- The seed information which will be used in creating the
codatID. The seed information should be at least four bytes in
length, though longer values are better.
Codat
CodatID newCodatID(PeerGroupID groupID, InputStream in) throws 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.
IOException
- I/O Error reading documentCodat
CodatID newCodatID(PeerGroupID groupID, byte[] seed, InputStream in) throws IOException
groupID
- The group to which this ID will belong.seed
- The seed information which will be used in creating the
codat ID. The seed information should be at least four bytes in
length, though longer values are better.in
- The InputStream from which the content hash is calculated.
The stream is read until EOF and then closed.
IOException
- I/O Error reading documentCodat
PeerID newPeerID(PeerGroupID groupID)
groupID
- the group to which this PeerID will belong.
PeerGroup
PeerID newPeerID(PeerGroupID groupID, byte[] seed)
groupID
- the group to which this PeerID will belong.seed
- The seed information which will be used in creating the
PeerID. The seed information should be at least four bytes in length,
though longer values are better.
PeerGroup
PeerGroupID newPeerGroupID()
PeerGroup
PeerGroupID newPeerGroupID(byte[] seed)
seed
- The seed information which will be used in creating the
PeerGroupID. The seed information should be at least four bytes in
length, though longer values are better.
PeerGroup
PeerGroupID newPeerGroupID(PeerGroupID parent)
parent
- The group which will be the parent of this group.
PeerGroup
PeerGroupID newPeerGroupID(PeerGroupID parent, byte[] seed)
parent
- The group which will be the parent of this group.seed
- The seed information which will be used in creating the
PeerGroupID. The seed information should be at least four bytes in
length, though longer values are better.
PeerGroup
PipeID newPipeID(PeerGroupID groupID)
groupID
- The group to which this Pipe ID will belong.
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. The seed information should be at least four bytes in
length, though longer values are better.
ModuleClassID newModuleClassID()
Module
ModuleClassID newModuleClassID(ModuleClassID baseClass)
baseClass
- The ModuleClassID which will be used as a base
class for this new role value instance.
Module
ModuleSpecID newModuleSpecID(ModuleClassID baseClass)
baseClass
- The ModuleClassID which will be used as a base
class for this new ModuleSpecID.
Module
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |