Name
StructuredDocumentFactory
Synopsis
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); }
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.