org.media.mn8.protocol.jabber.xmlparser
Class XMLParser

java.lang.Object
  |
  +--org.media.mn8.protocol.jabber.xmlparser.XMLParser

public class XMLParser
extends Object

The main XML Parser class.


Constructor Summary
XMLParser(XMLEventListener _eventHandler)
          Constructor, Used to override default dispatcher.
 
Method Summary
 int getNextCharacter()
          Method to get the next character from the input stream.
 void parse(InputStream _is)
          Parse wrapper for InputStreams
 void parse(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
 

Constructor Detail

XMLParser

public XMLParser(XMLEventListener _eventHandler)
Constructor, Used to override default dispatcher.

Parameters:
_eventHandler - The event handle to dispatch events through.
Method Detail

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 IOException
Method to get the next character from the input stream.

IOException

parse

public void parse(InputStream _is)
           throws IOException
Parse wrapper for InputStreams

IOException

parse

public void parse(Reader _inputReader)
           throws IOException
The main parsing loop.

Parameters:
_inputReader - The reader for the XML stream.
IOException


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."