com.google.gdata.wireformats
Class SaxEventSource

java.lang.Object
  extended by com.google.gdata.wireformats.SaxEventSource
All Implemented Interfaces:
XmlEventSource

public class SaxEventSource
extends java.lang.Object
implements XmlEventSource

XmlEventSource implementation based on SAX.


Constructor Summary
SaxEventSource(java.io.Reader reader)
          Creates a SAX event source backed by a reader and a charset.
 
Method Summary
 void parse(org.xml.sax.helpers.DefaultHandler handler)
          Parse this event source with the given xml handler.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaxEventSource

public SaxEventSource(java.io.Reader reader)
Creates a SAX event source backed by a reader and a charset.

Method Detail

parse

public void parse(org.xml.sax.helpers.DefaultHandler handler)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Description copied from interface: XmlEventSource
Parse this event source with the given xml handler.

Specified by:
parse in interface XmlEventSource
Parameters:
handler - an xml handler that can handle the xml event source.
Throws:
org.xml.sax.SAXException - if parsing fails.
java.io.IOException