|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface StructuredDocumentFactory.Instantiator
Interface for instantiators of StructuredDocuments
Nested Class Summary | |
---|---|
static class |
StructuredDocumentFactory.Instantiator.ExtensionMapping
For mapping between extensions and MIME types. |
Method Summary | |
---|---|
StructuredDocumentFactory.Instantiator.ExtensionMapping[] |
getSupportedFileExtensions()
Returns the mapping of file extension and mime-types for this type of document. |
MimeMediaType[] |
getSupportedMimeTypes()
Returns the MIME Media types supported by this this Document per IETF RFC 2046 MIME : Media Types. |
StructuredDocument |
newInstance(MimeMediaType mimeType,
InputStream source)
Create a structured document from a stream containing an appropriately serialized instance of the same document. |
StructuredDocument |
newInstance(MimeMediaType mimeType,
String doctype)
Create a new structured document of the type specified by doctype. |
StructuredDocument |
newInstance(MimeMediaType mimeType,
String doctype,
String value)
Create a new structured document of the type specified by doctype. |
Method Detail |
---|
MimeMediaType[] getSupportedMimeTypes()
StructuredDocumentFactory.Instantiator.ExtensionMapping[] getSupportedFileExtensions()
StructuredDocument newInstance(MimeMediaType mimeType, String doctype)
mimeType
- The MIME type to be associated with this instance.
the base type must be one of the types returned by
getSupportedMimeTypes. Some implementations may accept
parameters in the params section of the MIME type.doctype
- Type for the base node of the document.
StructuredDocument newInstance(MimeMediaType mimeType, String doctype, String value)
mimeType
- The MIME type to be associated with this instance.
The base type must be one of the types returned by
getSupportedMimeTypes. Some implementations may accept
parameters in the params section of the MIME type.doctype
- Type for the base node of the document.value
- Value for the base node of the document.
StructuredDocument
instance.StructuredDocument newInstance(MimeMediaType mimeType, InputStream source) throws IOException
mimeType
- The MIME type to be associated with this instance.
The base type must be one of the types returned by
getSupportedMimeTypes. Some implementations may accept
parameters in the params section of the MIME type.source
- The Inputstream
from which to read the
document.
StructuredDocument
instance.
IOException
- Thrown for problems reading from the source.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |