public class MimeConfParser
extends java.lang.Object
<!ELEMENT FileTypes (Binary,Text)>
<!ELEMENT Binary (Archive,Document,Mime*)>
<!ATTLIST Binary encoding CDATA #FIXED X-CP437>
<!ELEMENT Archive (Mime*)>
<!ELEMENT Document (Mime*)>
<!ELEMENT Text (Source,Table,SGML,Mime*)>
<!ATTLIST Text encoding CDATA #IMPLIED>
<!ELEMENT Source (Mime*)>
<!ELEMENT Table (Mime*)>
<!ELEMENT SGML (XML,Mime*)>
<!ELEMENT Mime (Mime*)>
<!ATTLIST Mime name CDATA #IMPLIED>
<!ATTLIST Mime encoding CDATA #IMPLIED>
<!ATTLIST Mime extensions CDATA #IMPLIED>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
MIME_NODE_NAME
Name of mime type node is "Mime".
|
protected static java.lang.String |
ROOT_NODE_NAME
Name of root node is "FileTypes".
|
protected static java.lang.String |
XMLNS
Namespace for MimeType XML.
|
| Constructor and Description |
|---|
MimeConfParser() |
protected static final java.lang.String XMLNS
protected static final java.lang.String ROOT_NODE_NAME
protected static final java.lang.String MIME_NODE_NAME
public void parse(java.io.InputStream input)
throws org.xml.sax.SAXException,
java.io.IOException
input - xml to be readorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic void format(java.io.OutputStream output)
throws java.io.IOException
output - where to write to.java.io.IOException