public static class XMLContentHandlerImpl.XMI extends XMLContentHandlerImpl
Modifier and Type | Class and Description |
---|---|
static class |
XMLContentHandlerImpl.XMI.Describer
A describer that
creates an XMLContentHandlerImpl.XMI instance. |
XMLContentHandlerImpl.XMI
ContentHandler.ByteOrderMark, ContentHandler.Registry, ContentHandler.Validity
BYTE_ORDER_MARK_PROPERTY, CHARSET_PROPERTY, CONTENT_TYPE_PROPERTY, INVALID_CONTENT_DESCRIPTION, LINE_DELIMITER_PROPERTY, OPTION_REQUESTED_PROPERTIES, UNSPECIFIED_CONTENT_TYPE, VALIDITY_PROPERTY
Constructor and Description |
---|
XMLContentHandlerImpl.XMI() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
contentDescription(URI uri,
java.io.InputStream inputStream,
java.util.Map<?,?> options,
java.util.Map<java.lang.Object,java.lang.Object> context)
Returns a valid content description if the XML content of the input stream has an XMI version attribute.
|
createXMLResource, getCharset, isXMINameAndNamespace, isXMINamespace, load
canHandle, createContentDescription, getByteOrderMark, getLineDelimiter, getLineDelimiter, getRequestedProperties, isRequestedProperty
public java.util.Map<java.lang.String,java.lang.Object> contentDescription(URI uri, java.io.InputStream inputStream, java.util.Map<?,?> options, java.util.Map<java.lang.Object,java.lang.Object> context) throws java.io.IOException
contentDescription
in interface ContentHandler
contentDescription
in class ContentHandlerImpl
uri
- the URI for which to determine the content description.inputStream
- the input stream associated with the given URI.options
- a map of options to direct what kind of description is needed.context
- a map of contextual information that content handlers use to store partially computed results.java.io.IOException
- if there is a problem reading the stream.