September 2002
Intermediate to advanced
416 pages
14h 46m
English
StructuredDocumentFactory
The
newStructuredDocument( ) methods of this class
create structured documents. Those received from other peers are
created by using an input stream; documents sent to other peers are
created with the appropriate root element.
public final class StructuredDocumentFactory extends net.jxta.util.ClassFactory {
// No Constructor
// Inner Classes
public static class Instantiator;
// Public Class Methods
public static String getFileExtensionForMimeType(MimeMediaType mimetype);
public static MimeMediaType getMimeTypeForFileExtension(String extension);
public static StructuredDocument newStructuredDocument(MimeMediaType mimetype, String doctype);
public static StructuredDocument newStructuredDocument(MimeMediaType mimetype, InputStream stream)
throws IOException;
public static StructuredDocument newStructuredDocument(MimeMediaType mimetype, String doctype, String value);
public static boolean registerInstantiator(MimeMediaType mimetype,
StructuredDocumentFactory.Instantiator instantiator);
// Protected Methods Overriding ClassFactory
protected java.util.Hashtable getAssocTable();
protected Class getClassForKey();
protected Class getClassOfInstantiators();
protected boolean registerAssoc(String className);
}Read now
Unlock full access