public class

SaxEventSource

extends Object
implements XmlEventSource
java.lang.Object
   ↳ com.google.gdata.wireformats.SaxEventSource

Class Overview

XmlEventSource implementation based on SAX.

Summary

Fields
private static final Logger logger
private static final SAXParserFactory parserFactory The SAXParserFactory used to create underlying SAXParser instances.
private final Reader reader Reader used by this parser.
Public Constructors
SaxEventSource(Reader reader)
Creates a SAX event source backed by a reader and a charset.
Public Methods
void parse(DefaultHandler handler)
Parse this event source with the given xml handler.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.XmlEventSource

Fields

private static final Logger logger

private static final SAXParserFactory parserFactory

The SAXParserFactory used to create underlying SAXParser instances.

private final Reader reader

Reader used by this parser.

Public Constructors

public SaxEventSource (Reader reader)

Creates a SAX event source backed by a reader and a charset.

Parameters
reader

Public Methods

public void parse (DefaultHandler handler)

Parse this event source with the given xml handler.

Parameters
handler An xml handler that can handle the xml event source.
Throws
IOException
SAXException