| java.lang.Object |
| ↳ |
com.google.gdata.util.ParseUtil |
Class Overview
Helper class with static parse methods to parse entries and feeds based on
the old or new data model as appropriate.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
static
T
readEntry
(ParseSource source, Class<T> requestedClass, ExtensionProfile extProfile, Schema schema)
Reads an entry from a parse source, returning an instance of the requested
class, and using the given extension profile if parsing into the old data
model. If the requested class is null the response will be parsed into
the most specific subtype possible, using dynamic typing. If the requested
class is not null an instance of the requested type or a subtype will be
returned.
Parameters
| source
| |
| requestedClass
| |
| extProfile
| |
| schema
| |
Reads an entry from a parse source. This will use dynamic typing to adapt
the response to the most specific subtype available.
public
static
F
readFeed
(ParseSource source, Class<F> requestedClass, ExtensionProfile extProfile, Schema schema)
This method provides the base implementation of feed reading using either
static or dynamic typing. If feedClass is non-null, the method is
guaranteed to return an instance of this type, otherwise adaptation will
be used to determine the type. The source object may be either an
InputStream, Reader, or XmlParser.
Parameters
| source
| |
| requestedClass
| |
| extProfile
| |
| schema
| |
public
static
IFeed
readFeed
(ParseSource source)
Reads a feed from a parse source. This will use dynamic typing to adapt
the response to the most specific subtype available.