java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.rpl.xml.XmlSaxParser
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 |
public XmlSaxParser(org.xml.sax.ContentHandler handler)
handler
- the SAX Handler to use ( e.g. ScreenRequestSaxHandler )public XmlSaxParser(org.xml.sax.ContentHandler handler, java.lang.String sClass)
handler
- :sClass
- :Method Detail |
public void parse(java.io.InputStream stream, java.lang.String sCharset) throws TelosysException
stream
- : the stream to parsesCharset
- : the charset to use ( utf-8, iso-8859-1, ... )
TelosysException
public void parseString(java.lang.String stringXml, java.lang.String sCharset) throws TelosysException
stringXml
- : the XML string to parsesCharset
- : the charset to use
TelosysException