org.media.mn8.protocol.jabber.xmlparser
Class XMLParser
java.lang.Object
|
+--org.media.mn8.protocol.jabber.xmlparser.XMLParser
- public class XMLParser
- extends java.lang.Object
The main XML Parser class.
Method Summary |
int |
getNextCharacter()
Method to get the next character from the input stream. |
void |
parse(java.io.InputStream _is)
Parse wrapper for InputStreams |
void |
parse(java.io.Reader _inputReader)
The main parsing loop. |
void |
setInputUTF8Encoded(boolean flag)
Method to set the flag to state whether or not the input is UTF-8
encoded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLParser
public XMLParser(XMLEventListener _eventHandler)
- Constructor, Used to override default dispatcher.
- Parameters:
_eventHandler
- The event handle to dispatch events through.
setInputUTF8Encoded
public void setInputUTF8Encoded(boolean flag)
- Method to set the flag to state whether or not the input is UTF-8
encoded. For the UTF-8 decoding to work the parse method MUST be
called by passing it a java.io.DataInputStream object.
- Parameters:
flag
- True if UTF-8 decoding should be performed on the input
stream, false if not.
getNextCharacter
public int getNextCharacter()
throws java.io.IOException
- Method to get the next character from the input stream.
parse
public void parse(java.io.InputStream _is)
throws java.io.IOException
- Parse wrapper for InputStreams
- Parameters:
_inputReader
- The reader for the XML stream.
parse
public void parse(java.io.Reader _inputReader)
throws java.io.IOException
- The main parsing loop.
- Parameters:
_inputReader
- The reader for the XML stream.
"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."