|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
fr.fluxmedia.transmorpher.parser.FMParser
public class FMParser
Define a parser for XML Document
Field Summary | |
---|---|
protected int |
debugMode
the mode validating or not |
protected java.util.Stack |
iContext
The current context of the parsing |
protected java.io.PrintWriter |
output
The output for a servlet |
protected javax.xml.parsers.SAXParser |
parser
XML Parser |
Constructor Summary | |
---|---|
FMParser(int debugMode)
The constructor, build the XML Parser but not parse the document |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException exception)
This method is called when an error occurs during the parsing. |
void |
fatalError(org.xml.sax.SAXParseException exception)
This method is called when an fatal error occurs during the parsing. |
Transmorpher |
newParse(java.lang.String uri)
Parse the document corresponding to the URI given in parameter |
void |
warning(org.xml.sax.SAXParseException exception)
This method is called when a warnig occurs during the parsing. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.xml.parsers.SAXParser parser
protected java.util.Stack iContext
protected java.io.PrintWriter output
protected int debugMode
Constructor Detail |
---|
public FMParser(int debugMode) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
debugMode
- value of the debug mode
javax.xml.parsers.ParserConfigurationException
- Description of the Exception
org.xml.sax.SAXException
- Description of the ExceptionMethod Detail |
---|
public Transmorpher newParse(java.lang.String uri) throws org.xml.sax.SAXException, java.io.IOException
uri
- the URI of the document to parse
org.xml.sax.SAXException
java.io.IOException
- sends when an IO errors occurspublic void warning(org.xml.sax.SAXParseException exception)
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
exception
- Description of the Parameterpublic void error(org.xml.sax.SAXParseException exception)
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
exception
- Description of the Parameterpublic void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
exception
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exception
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |