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


Constructor Summary
XmlSaxParser(org.xml.sax.ContentHandler handler)
          Constructor
XmlSaxParser(org.xml.sax.ContentHandler handler, java.lang.String sClass)
          Constructor
 
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, 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

Parameters:
handler - :

XmlSaxParser

public XmlSaxParser(org.xml.sax.ContentHandler handler,
                    java.lang.String sClass)
Constructor

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, using the given charset

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