org.objectweb.telosys.rpl.xml
Class XmlSaxParser

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.rpl.xml.XmlSaxParser

public final class XmlSaxParser
extends TelosysObject

XML SAX parser


Constructor Summary
XmlSaxParser(org.xml.sax.ContentHandler handler)
          Constructor without SAX parser class name
( the SAX parser class name defined in the Telosys properties will be used )
XmlSaxParser(org.xml.sax.ContentHandler handler, java.lang.String sClass)
          Constructor with a specific SAX parser class name to use
 
Method Summary
 void parse(java.io.InputStream stream, java.lang.String sCharset)
          Parse the input stream using the given charset
 void parseString(java.lang.String stringXml, java.lang.String sCharset)
          Parse the given string as the XML document, using the given charset
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSaxParser

public XmlSaxParser(org.xml.sax.ContentHandler handler)
Constructor without SAX parser class name
( the SAX parser class name defined in the Telosys properties will be used )

Parameters:
handler - the SAX Handler to use ( e.g. ScreenRequestSaxHandler )

XmlSaxParser

public XmlSaxParser(org.xml.sax.ContentHandler handler,
                    java.lang.String sClass)
Constructor with a specific SAX parser class name to use

Parameters:
handler - :
sClass - :
Method Detail

parse

public void parse(java.io.InputStream stream,
                  java.lang.String sCharset)
           throws TelosysException
Parse the input stream using the given charset

Parameters:
stream - : the stream to parse
sCharset - : the charset to use ( utf-8, iso-8859-1, ... )
Throws:
TelosysException

parseString

public void parseString(java.lang.String stringXml,
                        java.lang.String sCharset)
                 throws TelosysException
Parse the given string as the XML document, using the given charset

Parameters:
stringXml - : the XML string to parse
sCharset - : the charset to use
Throws:
TelosysException