public class

ParseSource

extends Object
java.lang.Object
   ↳ com.google.gdata.data.ParseSource

Class Overview

The ParseSource class represents a data input source that can be used to read parseable GData content.

Summary

Fields
private final XmlEventSource eventSource
private final InputStream inputStream
private final Reader reader
Public Constructors
ParseSource(Reader reader)
Constructs a new GData input source using data from a Reader.
ParseSource(InputStream inputStream)
Constructs a new GData input source using data from an InputStream.
ParseSource(XmlEventSource eventSource)
Constructs a new GData input source using data from an XmlParser.
Public Methods
final XmlEventSource getEventSource()
Returns the Reader associated with the input source or null if associated with a different source type.
final InputStream getInputStream()
Returns the Reader associated with the input source or null if associated with a different source type.
final Reader getReader()
Returns the Reader associated with the input source or null if associated with a different source type.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final XmlEventSource eventSource

private final InputStream inputStream

private final Reader reader

Public Constructors

public ParseSource (Reader reader)

Constructs a new GData input source using data from a Reader.

Parameters
reader

public ParseSource (InputStream inputStream)

Constructs a new GData input source using data from an InputStream.

Parameters
inputStream

public ParseSource (XmlEventSource eventSource)

Constructs a new GData input source using data from an XmlParser.

Parameters
eventSource

Public Methods

public final XmlEventSource getEventSource ()

Returns the Reader associated with the input source or null if associated with a different source type.

public final InputStream getInputStream ()

Returns the Reader associated with the input source or null if associated with a different source type.

public final Reader getReader ()

Returns the Reader associated with the input source or null if associated with a different source type.