INRIA & FluxMedia

fr.fluxmedia.transmorpher.Parser
Class FMParser

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--fr.fluxmedia.transmorpher.Parser.FMParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
ProcessParser, QueryParser, RuleSetParser

public class FMParser
extends DefaultHandler

Author : Laurent Tardif Date : 05 01 2001 Content : Define a parser for XML Document


Field Summary
(package private)  int debugMode
           
private static String DEFAULT_PARSER_NAME
          The XML Parser class
(package private)  Stack iContext
          The current context of the parsing
(package private)  SAXParser iParser
          XML Parser
(package private)  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(SAXParseException ex)
           
 void fatalError(SAXParseException ex)
           
 Transmorpher Newparse(String uri)
          Parse the document given in parameter
 void warning(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
 

Field Detail

DEFAULT_PARSER_NAME

private static final String DEFAULT_PARSER_NAME
The XML Parser class

iParser

SAXParser iParser
XML Parser

iContext

Stack iContext
The current context of the parsing

output

PrintWriter output
The output for a servlet

debugMode

int debugMode
Constructor Detail

FMParser

public FMParser(int debug_mode)
The constructor, build the XML Parser but not parse the document
Method Detail

Newparse

public Transmorpher Newparse(String uri)
Parse the document given in parameter

warning

public void warning(SAXParseException exception)
             throws SAXException
Overrides:
warning in class DefaultHandler

error

public void error(SAXParseException ex)
Overrides:
error in class DefaultHandler

fatalError

public void fatalError(SAXParseException ex)
                throws SAXException
Overrides:
fatalError in class DefaultHandler

INRIA & FluxMedia

..no bottom yet...