Name
StructuredDocumentFactory.Instantiator
Synopsis
This class maps between filename extensions and their MIME types. Each instantiator of structured documents can provide its own set of mappings. Developers do not access this class directly.
public static interface StructuredDocumentFactory.Instantiator { // Inner Classes public static class ExtensionMapping; // Public Instance Methods public abstract StructuredDocumentFactory.Instantiator.ExtensionMapping[ ] getSupportedFileExtensions(); public abstract MimeMediaType[ ] getSupportedMimeTypes(); public abstract StructuredDocument newInstance(MimeMediaType mimeType, InputStream source) throws IOException; public abstract StructuredDocument newInstance(MimeMediaType mimeType, String doctype); public abstract StructuredDocument newInstance(MimeMediaType mimeType, String doctype, String value); }
Passed To
StructuredDocumentFactory.registerInstantiator()
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.