Example #1
0
 /**
  * Removes a Listener from the list of listeners.
  * @param pl the {@link XMLParserListener} to remove
  * @return the parser
  */
 public XMLParser RemoveListener(IXMLParserListener pl)
 {
     listeners.Remove(pl);
     return this;
 }
Example #2
0
 /**
  * Construct a XMLParser with the given XMLParserConfig.
  *
  * @param isHtml false if this parser is not going to parse HTML and
  *            whitespace should be submitted as text too.
  * @param listener the listener
  * @param charset the Charset to use
  */
 public XMLParser(bool isHtml, IXMLParserListener listener, Encoding charset)
     : this(isHtml, charset)
 {
     listeners.Add(listener);
 }
Example #3
0
 /**
  * If no <code>ParserListener</code> is added, parsing with the parser seems useless no?
  *
  * @param pl the {@link XMLParserListener}
  * @return the parser
  */
 public XMLParser AddListener(IXMLParserListener pl)
 {
     listeners.Add(pl);
     return this;
 }
Example #4
0
 /**
  * Constructs a new Parser with the default jvm charset.
  * @param b true if HTML is being parsed
  * @param listener the XMLParserListener
  */
 public XMLParser(bool b, IXMLParserListener listener)
     : this(b, Encoding.Default)
 {
     listeners.Add(listener);
 }
Example #5
0
 /**
  * Constructs a new Parser with HTML parsing set to true and the default jvm charset.
  * @param listener the XMLParserListener
  */
 public XMLParser(IXMLParserListener listener)
     : this(true, Encoding.Default)
 {
     listeners.Add(listener);
 }
Example #6
0
 /**
  * Construct an XMLParser with the given XMLParserConfig ready for
  * HTML/XHTML processing..
  *
  * @param listener the listener
  * @param charset the Charset
  */
 public XMLParser(IXMLParserListener listener, Encoding charset) : this(true, charset)
 {
     listeners.Add(listener);
 }
Example #7
0
 /**
  * Construct an XMLParser with the given XMLParserConfig ready for
  * HTML/XHTML processing..
  *
  * @param listener the listener
  * @param charset the Charset
  */
 public XMLParser(IXMLParserListener listener, Encoding charset)
     : this(true, charset)
 {
     listeners.Add(listener);
 }
Example #8
0
 /**
  * Removes a Listener from the list of listeners.
  * @param pl the {@link XMLParserListener} to remove
  * @return the parser
  */
 virtual public XMLParser RemoveListener(IXMLParserListener pl)
 {
     listeners.Remove(pl);
     return(this);
 }
Example #9
0
 /**
  * If no <code>ParserListener</code> is added, parsing with the parser seems useless no?
  *
  * @param pl the {@link XMLParserListener}
  * @return the parser
  */
 virtual public XMLParser AddListener(IXMLParserListener pl)
 {
     listeners.Add(pl);
     return(this);
 }
Example #10
0
 /**
  * Construct a XMLParser with the given XMLParserConfig.
  *
  * @param isHtml false if this parser is not going to parse HTML and
  *            whitespace should be submitted as text too.
  * @param listener the listener
  * @param charset the Charset to use
  */
 public XMLParser(bool isHtml, IXMLParserListener listener, Encoding charset) : this(isHtml, charset)
 {
     listeners.Add(listener);
 }
Example #11
0
 /**
  * Constructs a new Parser with HTML parsing set to true and the default jvm charset.
  * @param listener the XMLParserListener
  */
 public XMLParser(IXMLParserListener listener) : this(true, Encoding.Default)
 {
     listeners.Add(listener);
 }
Example #12
0
 /**
  * Constructs a new Parser with the default jvm charset.
  * @param b true if HTML is being parsed
  * @param listener the XMLParserListener
  */
 public XMLParser(bool b, IXMLParserListener listener) : this(b, Encoding.Default)
 {
     listeners.Add(listener);
 }