|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for instantiators of IDs. Each ID Format registered with the ID Factory implements a class with this interface.
Method Summary | |
ID |
fromURL(URL source)
Deprecated. Convert to fromURI. |
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 |
public String getSupportedIDFormat()
public ID fromURL(URL source) throws MalformedURLException, UnknownServiceException
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.public CodatID newCodatID(PeerGroupID groupID)
groupID
- the group to which this content will belong.
Codat
public 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
public 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
public 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
public PeerID newPeerID(PeerGroupID groupID)
groupID
- the group to which this PeerID will belong.
PeerGroup
public 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
public PeerGroupID newPeerGroupID()
PeerGroup
public 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
public PeerGroupID newPeerGroupID(PeerGroupID parent)
parent
- The group which will be the parent of this group.
PeerGroup
public 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
public PipeID newPipeID(PeerGroupID groupID)
groupID
- The group to which this Pipe ID will belong.
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. The seed information should be at least four bytes in length,
though longer values are better.
public ModuleClassID newModuleClassID()
Module
public ModuleClassID newModuleClassID(ModuleClassID baseClass)
baseClass
- The ModuleClassID which will be used as a base
class for this new role value instance.
Module
public ModuleSpecID newModuleSpecID(ModuleClassID baseClass)
baseClass
- The ModuleClassID which will be used as a base
class for this new ModuleSpecID.
Module
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |