Methods Summary |
---|
public com.google.wireless.gdata.parser.GDataParser | createCalendarsFeedParser(java.io.InputStream is)Returns a parser for a calendars meta-feed.
XmlPullParser xmlParser;
try {
xmlParser = xmlFactory.createParser();
} catch (XmlPullParserException xppe) {
throw new ParseException("Could not create XmlPullParser", xppe);
}
return new XmlCalendarsGDataParser(is, xmlParser);
|
public com.google.wireless.gdata.parser.GDataParser | createParser(java.io.InputStream is)
XmlPullParser xmlParser;
try {
xmlParser = xmlFactory.createParser();
} catch (XmlPullParserException xppe) {
throw new ParseException("Could not create XmlPullParser", xppe);
}
return new XmlEventsGDataParser(is, xmlParser);
|
public com.google.wireless.gdata.parser.GDataParser | createParser(java.lang.Class entryClass, java.io.InputStream is)
if (entryClass == CalendarEntry.class) {
return createCalendarsFeedParser(is);
} else if (entryClass == EventEntry.class) {
return createParser(is);
}
throw new IllegalArgumentException("Unknown entry class '" + entryClass.getName()
+ "' specified.");
|
public com.google.wireless.gdata.serializer.GDataSerializer | createSerializer(com.google.wireless.gdata.data.Entry entry)Creates a new {@link GDataSerializer} for the provided entry. The entry
must be an instance of {@link EventEntry}.
if (!(entry instanceof EventEntry)) {
throw new IllegalArgumentException("Expected EventEntry!");
}
EventEntry eventEntry = (EventEntry) entry;
return new XmlEventEntryGDataSerializer(xmlFactory, eventEntry);
|