|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.id.unknown.Instantiator
final class Instantiator
Field Summary | |
---|---|
(package private) static String |
unknownFormat
Our ID Format |
Constructor Summary | |
---|---|
Instantiator()
|
Method Summary | |
---|---|
ID |
fromURI(URI source)
Construct a new ID instance from a JXTA ID contained in a URI. |
ID |
fromURL(URL source)
Construct a new ID instance from a JXTA ID contained in a URL. |
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 classID)
Creates a new ModuleClassID instance. |
ModuleSpecID |
newModuleSpecID(ModuleClassID classID)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String unknownFormat
Constructor Detail |
---|
Instantiator()
Method Detail |
---|
public String getSupportedIDFormat()
getSupportedIDFormat
in interface IDFactory.Instantiator
public ID fromURL(URL source) throws MalformedURLException, UnknownServiceException
fromURL
in interface IDFactory.Instantiator
source
- URL which will be decoded to create a new ID instance.
MalformedURLException
- Is thrown if the URL provided is not
a valid, recognized JXTA URL.
UnknownServiceException
- Is thrown if the URL provided is of
a format unrecognized by this JXTA implementation.public CodatID newCodatID(PeerGroupID groupID)
newCodatID
in interface IDFactory.Instantiator
groupID
- The group to which this content will belong.
Codat
public CodatID newCodatID(PeerGroupID groupID, byte[] seed)
newCodatID
in interface IDFactory.Instantiator
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
newCodatID
in interface IDFactory.Instantiator
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
newCodatID
in interface IDFactory.Instantiator
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)
newPeerID
in interface IDFactory.Instantiator
groupID
- the group to which this PeerID will belong.
PeerGroup
public PeerID newPeerID(PeerGroupID groupID, byte[] seed)
newPeerID
in interface IDFactory.Instantiator
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()
newPeerGroupID
in interface IDFactory.Instantiator
PeerGroup
public PeerGroupID newPeerGroupID(byte[] seed)
newPeerGroupID
in interface IDFactory.Instantiator
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)
newPeerGroupID
in interface IDFactory.Instantiator
parent
- The group which will be the parent of this group.
PeerGroup
public PeerGroupID newPeerGroupID(PeerGroupID parent, byte[] seed)
newPeerGroupID
in interface IDFactory.Instantiator
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)
newPipeID
in interface IDFactory.Instantiator
groupID
- The group to which this Pipe ID will belong.
public PipeID newPipeID(PeerGroupID groupID, byte[] seed)
newPipeID
in interface IDFactory.Instantiator
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()
newModuleClassID
in interface IDFactory.Instantiator
Module
public ModuleClassID newModuleClassID(ModuleClassID classID)
newModuleClassID
in interface IDFactory.Instantiator
classID
- The ModuleClassID which will be used as a base
class for this new role value instance.
Module
public ModuleSpecID newModuleSpecID(ModuleClassID classID)
newModuleSpecID
in interface IDFactory.Instantiator
classID
- The ModuleClassID which will be used as a base
class for this new ModuleSpecID.
Module
public ID fromURI(URI source) throws URISyntaxException
fromURI
in interface IDFactory.Instantiator
source
- URI which will be decoded to create a new ID instance.
URISyntaxException
- if the URI provided is not a valid,
recognized JXTA URI.public ID fromURNNamespaceSpecificPart(String source) throws URISyntaxException
fromURNNamespaceSpecificPart
in interface IDFactory.Instantiator
source
- the scheme specific portion of a jxta URN.
URISyntaxException
- if the URI provided is not a valid,
recognized JXTA URI.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |