Name
Package net.jxta.document
Synopsis
The classes in this package manage JXTA documents. Documents are the key abstraction of data sent between JXTA peers: all data elements exchanged by JXTA peers are instances of documents. Documents may be either structured or unstructured; the most common usage is structured documents with a MIME type of “text/xml.”
Advertisements
for various types of JXTA resources are represented by
Advertisement objects returned from the
AdvertisementFactory class. Similarly, you use the
StructuredDocumentFactory class to obtain
StructuredDocument objects, which can then be
populated with one or more Element objects. The
class hierarchy for this package is shown in Figure 9-4.

Figure 9-4. The net.jxta.document package
Interfaces
public static interface
AdvertisementFactory.Instantiator; |
public interface
Attributable; |
public interface
Document; |
public interface
Element; |
public interface
StructuredDocument extends Document, Element;
|
public static interface
StructuredDocumentFactory.Instantiator; |
public interface
StructuredTextDocument extends StructuredDocument, TextDocument, TextElement;
|
public interface
TextDocument extends Document; |
public interface
TextElement extends Element; |
Classes
public abstract class
Advertisement; |
public class
AdvertisementFactory extends net.jxta.util.ClassFactory; |
public class
Attribute; |
public class
MimeMediaType ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access