fr.fluxmedia.transmorpher.parser
Class FMParser
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--fr.fluxmedia.transmorpher.parser.FMParser
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- Direct Known Subclasses:
- ProcessParser, QueryParser, RuleSetParser
- public class FMParser
- extends org.xml.sax.helpers.DefaultHandler
Author : Laurent Tardif
Date : 05 01 2001
Content : Define a parser for XML Document
Field Summary |
protected int |
debugMode
|
(package private) java.util.Stack |
iContext
The current context of the parsing |
protected javax.xml.parsers.SAXParser |
iParser
XML Parser |
(package private) java.io.PrintWriter |
output
The output for a servlet |
Constructor Summary |
FMParser(int debug_mode)
The constructor, build the XML Parser but not parse the document |
Method Summary |
void |
error(org.xml.sax.SAXParseException ex)
|
void |
fatalError(org.xml.sax.SAXParseException ex)
|
Transmorpher |
Newparse(java.lang.String uri)
Parse the document given in parameter |
void |
warning(org.xml.sax.SAXParseException exception)
|
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, registerNatives, toString, wait, wait, wait |
iParser
protected javax.xml.parsers.SAXParser iParser
- XML Parser
iContext
java.util.Stack iContext
- The current context of the parsing
output
java.io.PrintWriter output
- The output for a servlet
debugMode
protected int debugMode
FMParser
public FMParser(int debug_mode)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- The constructor, build the XML Parser but not parse the document
Newparse
public Transmorpher Newparse(java.lang.String uri)
throws org.xml.sax.SAXException,
java.io.IOException
- Parse the document given in parameter
warning
public void warning(org.xml.sax.SAXParseException exception)
- Overrides:
warning
in class org.xml.sax.helpers.DefaultHandler
error
public void error(org.xml.sax.SAXParseException ex)
- Overrides:
error
in class org.xml.sax.helpers.DefaultHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
- Overrides:
fatalError
in class org.xml.sax.helpers.DefaultHandler
..no bottom yet...