|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler net.sf.jmimemagic.MagicParser
DOCUMENT ME!
Field Summary | |
protected static boolean |
DEFAULT_NAMESPACES
|
protected static java.lang.String |
DEFAULT_PARSER_NAME
|
protected static boolean |
DEFAULT_SCHEMA_FULL_CHECKING
|
protected static boolean |
DEFAULT_SCHEMA_VALIDATION
|
protected static boolean |
DEFAULT_VALIDATION
|
protected static java.lang.String |
NAMESPACES_FEATURE_ID
|
protected static java.lang.String |
SCHEMA_FULL_CHECKING_FEATURE_ID
|
protected static java.lang.String |
SCHEMA_VALIDATION_FEATURE_ID
|
protected static java.lang.String |
VALIDATION_FEATURE_ID
|
Constructor Summary | |
MagicParser()
constructor |
Method Summary | |
void |
characters(char[] ch,
int offset,
int length)
DOCUMENT ME! |
void |
endDocument()
DOCUMENT ME! |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qname)
DOCUMENT ME! |
void |
error(org.xml.sax.SAXParseException ex)
DOCUMENT ME! |
void |
fatalError(org.xml.sax.SAXParseException ex)
DOCUMENT ME! |
java.util.Collection |
getMatchers()
DOCUMENT ME! |
void |
ignorableWhitespace(char[] ch,
int offset,
int length)
DOCUMENT ME! |
void |
initialize()
parse the xml file and create our MagicMatcher object list |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
DOCUMENT ME! |
void |
startDocument()
DOCUMENT ME! |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qname,
org.xml.sax.Attributes attributes)
DOCUMENT ME! |
void |
warning(org.xml.sax.SAXParseException ex)
DOCUMENT ME! |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, notationDecl, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
endPrefixMapping, setDocumentLocator, skippedEntity, startPrefixMapping |
Field Detail |
protected static final java.lang.String NAMESPACES_FEATURE_ID
protected static final java.lang.String VALIDATION_FEATURE_ID
protected static final java.lang.String SCHEMA_VALIDATION_FEATURE_ID
protected static final java.lang.String SCHEMA_FULL_CHECKING_FEATURE_ID
protected static final java.lang.String DEFAULT_PARSER_NAME
protected static final boolean DEFAULT_NAMESPACES
protected static final boolean DEFAULT_VALIDATION
protected static final boolean DEFAULT_SCHEMA_VALIDATION
protected static final boolean DEFAULT_SCHEMA_FULL_CHECKING
Constructor Detail |
public MagicParser()
Method Detail |
public void initialize() throws MagicParseException
MagicParseException
- DOCUMENT ME!public java.util.Collection getMatchers()
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- DOCUMENT ME!public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
- DOCUMENT ME!public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
target
- DOCUMENT ME!data
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void characters(char[] ch, int offset, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
ch
- DOCUMENT ME!offset
- DOCUMENT ME!length
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void ignorableWhitespace(char[] ch, int offset, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
ch
- DOCUMENT ME!offset
- DOCUMENT ME!length
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
uri
- DOCUMENT ME!localName
- DOCUMENT ME!qname
- DOCUMENT ME!attributes
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
uri
- DOCUMENT ME!localName
- DOCUMENT ME!qname
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
ex
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
ex
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
ex
- DOCUMENT ME!
org.xml.sax.SAXException
- DOCUMENT ME!
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |