|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.util.AdvertisementUtilities
Field Summary | |
static StructuredTextDocument |
STANDARD_COMPATABILITY
Deprecated. |
static String |
STANDARD_PROVIDER
Deprecated. |
static String |
STANDARD_URI
Deprecated. |
Method Summary | |
static byte[] |
advertisementToBytes(Advertisement advertisement)
Deprecated. This method should not be used because it produces a result who's encoding is not predictable and may (will) differ from JVM to JVM. |
static String |
advertisementToPlainText(Advertisement advertisement)
Deprecated. Save a JXTA Advertisement to a Plain Text String |
static String |
advertisementToText(Advertisement advertisement,
String mimeType)
Deprecated. Save a JXTA Advertisement to a String |
static String |
advertisementToXmlText(Advertisement advertisement)
Deprecated. Equivalent to Advertisement.toString() |
static Advertisement |
bytesToAdvertisement(byte[] buf)
Deprecated. This method should not be used because it interprets the input using the local default encoding which is not precidcatable and may (will) differ from JVM to JVM. |
static void |
cachePeerAdvertisement(PeerGroup peerGroup,
PeerAdvertisement peerAdvertisement)
Deprecated. Publish and advertisement to the Cache |
static ModuleClassAdvertisement |
createModuleClassAdvertisement(String name,
String description)
Deprecated. Create a ModuleClassAdvertisement |
static ModuleImplAdvertisement |
createModuleImplAdvertisement(ModuleSpecID specID,
String code,
String description)
Deprecated. This implementation initializes some fields of the resulting ModuleImplAdvertisement to constant values who's value may not be correct for all circumstances. Consider creating ModuleImpl Advertisements directy in your application. |
static ModuleSpecAdvertisement |
createModuleSpecAdvertisement(String name,
ModuleClassAdvertisement moduleClassAdvertisement,
StructuredDocument param)
Deprecated. This implementation incompletely initializes the module spec advertisement. Consider creating Module Spec Advertisements without this method. |
static ModuleSpecAdvertisement |
createModuleSpecAdvertisement(String name,
StructuredDocument param)
Deprecated. This implementation incompletely initializes the module spec advertisement. Consider creating Module Spec Advertisements without this method. |
static PipeAdvertisement |
createPipeAdvertisement()
Deprecated. Create a Pipe Advertisement |
static PipeAdvertisement |
createPipeAdvertisement(Element root)
Deprecated. Create a Pipe Advertisement |
static PipeAdvertisement |
createPipeAdvertisement(ID pipeID,
String pipeType)
Deprecated. Create a Pipe Advertisement |
static PipeAdvertisement |
createPipeAdvertisement(PeerGroup peerGroup,
String pipeType)
Deprecated. Create a Pipe Advertisement |
static PipeAdvertisement |
createPipeAdvertisement(PeerGroup peerGroup,
String sPipeID,
String pipeType,
String name)
Deprecated. Create a Pipe Advertisement |
static PipeAdvertisement |
createPipeAdvertisement(PipeID pipeId,
String pipeType)
Deprecated. Create a Pipe Advertisement |
static PipeAdvertisement |
createPipeAdvertisement(String pipeIdText,
String pipeType)
Deprecated. Create a Pipe Advertisement |
static PeerAdvertisement |
getPeerAdvertisement(Element root)
Deprecated. These utilities are too specialized for general use. |
static PipeAdvertisement |
getPipeAdvertisement(Element root)
Deprecated. These utilities are too specialized for general use. |
static Advertisement |
newAdvertisementFromXml(byte[] xmlTextAsBytes)
Deprecated. This method should not be used because it produces a result who's encoding is not predictable and may (will) differ from JVM to JVM. |
static Advertisement |
newAdvertisementFromXml(String xmlText)
Deprecated. This method should not be used because it interprets the input using the local default encoding which is not precidcatable and may (will) differ from JVM to JVM. |
static Advertisement |
readAdvertisementFromFile(File file)
Deprecated. Read a JXTA Advertisement from a File |
static Advertisement |
readAdvertisementFromFile(String fileName)
Deprecated. Read a JXTA Advertisement from a File |
static void |
saveAdvertisementToFile(Advertisement adv,
File file)
Deprecated. Save a JXTA Advertisement as an XML Document to a File |
static void |
saveAdvertisementToFile(Advertisement adv,
String fileName)
Deprecated. Save a JXTA Advertisement as an XML Document to a File |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final StructuredTextDocument STANDARD_COMPATABILITY
public static final String STANDARD_URI
public static final String STANDARD_PROVIDER
Method Detail |
public static Advertisement readAdvertisementFromFile(String fileName) throws JxtaException
fileName
- The file containing the Advertisement
JxtaException
- if Unable to parse the Advertisementpublic static Advertisement readAdvertisementFromFile(File file) throws JxtaException
JxtaException
- if Unable to parse the Advertisementpublic static void saveAdvertisementToFile(Advertisement adv, String fileName) throws JxtaException
adv
- The Advertisement to be savedfileName
- The file to store the Advertisement
JxtaException
- if Unable to parse the Advertisementpublic static void saveAdvertisementToFile(Advertisement adv, File file) throws JxtaException
adv
- The Advertisement to be saved
JxtaException
- if Unable to parse the Advertisementpublic static byte[] advertisementToBytes(Advertisement advertisement) throws JxtaException
JxtaException
- if Unable to parse the Advertisementpublic static Advertisement bytesToAdvertisement(byte[] buf)
buf
- The source of the advertisement
JxtaException
- if Unable to parse the Advertisementpublic static String advertisementToText(Advertisement advertisement, String mimeType)
advertisement
- The Advertisement to be convertedmimeType
- Type of document to be createdpublic static String advertisementToPlainText(Advertisement advertisement)
advertisement
- The Advertisement to be convertedpublic static String advertisementToXmlText(Advertisement advertisement)
advertisement
- The Advertisement to be convertedpublic static Advertisement newAdvertisementFromXml(byte[] xmlTextAsBytes) throws JxtaException
JxtaException
- if Unable to parse the Advertisementpublic static Advertisement newAdvertisementFromXml(String xmlText) throws JxtaException
JxtaException
- if Unable to parse the Advertisementpublic static PipeAdvertisement createPipeAdvertisement()
public static PipeAdvertisement createPipeAdvertisement(PipeID pipeId, String pipeType)
pipeId
- The pipe IDpipeType
- The type of the Pipe
public static PipeAdvertisement createPipeAdvertisement(String pipeIdText, String pipeType) throws JxtaException
pipeIdText
- The pipe IDpipeType
- The type of the Pipe
JxtaException
public static PipeAdvertisement createPipeAdvertisement(Element root)
root
- Element containing a Pipe Advertisement
public static PipeAdvertisement createPipeAdvertisement(PeerGroup peerGroup, String pipeType)
peerGroup
- The peerGrouppipeType
- The pipeType
public static PipeAdvertisement createPipeAdvertisement(ID pipeID, String pipeType)
pipeID
- The pipeIDpipeType
- The pipeType
public static PipeAdvertisement createPipeAdvertisement(PeerGroup peerGroup, String sPipeID, String pipeType, String name) throws JxtaException
peerGroup
- The peerGrouppipeType
- The pipeTypename
- The Pime Name
JxtaException
public static PipeAdvertisement getPipeAdvertisement(Element root)
public static PeerAdvertisement getPeerAdvertisement(Element root)
public static ModuleClassAdvertisement createModuleClassAdvertisement(String name, String description)
name
- The namedescription
- The description
public static ModuleSpecAdvertisement createModuleSpecAdvertisement(String name, StructuredDocument param)
name
- The nameparam
- The param
public static ModuleSpecAdvertisement createModuleSpecAdvertisement(String name, ModuleClassAdvertisement moduleClassAdvertisement, StructuredDocument param)
name
- The namemoduleClassAdvertisement
- The moduleClassAdvertisementparam
- The param
public static void cachePeerAdvertisement(PeerGroup peerGroup, PeerAdvertisement peerAdvertisement) throws JxtaException
peerGroup
- The peerGrouppeerAdvertisement
- The Advertisement
JxtaException
- if Unable to cache the Advertisementpublic static ModuleImplAdvertisement createModuleImplAdvertisement(ModuleSpecID specID, String code, String description)
specID
- The specIDcode
- The codedescription
- the advertisement description
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |