Methods Summary |
---|
public com.google.wireless.gdata.parser.GDataParser | createGroupEntryFeedParser(java.io.InputStream is)Returns a parser for a contacts group feed.
XmlPullParser xmlParser;
try {
xmlParser = xmlFactory.createParser();
} catch (XmlPullParserException xppe) {
throw new ParseException("Could not create XmlPullParser", xppe);
}
return new XmlGroupEntryGDataParser(is, xmlParser);
|
public com.google.wireless.gdata.parser.GDataParser | createMediaEntryFeedParser(java.io.InputStream is)Returns a parser for a media entry feed.
XmlPullParser xmlParser;
try {
xmlParser = xmlFactory.createParser();
} catch (XmlPullParserException xppe) {
throw new ParseException("Could not create XmlPullParser", xppe);
}
return new XmlMediaEntryGDataParser(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 XmlContactsGDataParser(is, xmlParser);
|
public com.google.wireless.gdata.parser.GDataParser | createParser(java.lang.Class entryClass, java.io.InputStream is)
if (entryClass == ContactEntry.class) {
return createParser(is);
}
if (entryClass == GroupEntry.class) {
return createGroupEntryFeedParser(is);
}
if (entryClass == MediaEntry.class) {
return createMediaEntryFeedParser(is);
}
throw new IllegalArgumentException("unexpected feed type, " + entryClass.getName());
|
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 ContactEntry} or {@link GroupEntry}.
if (entry instanceof ContactEntry) {
ContactEntry contactEntry = (ContactEntry) entry;
return new XmlContactEntryGDataSerializer(xmlFactory, contactEntry);
}
if (entry instanceof GroupEntry) {
GroupEntry groupEntry = (GroupEntry) entry;
return new XmlGroupEntryGDataSerializer(xmlFactory, groupEntry);
}
throw new IllegalArgumentException("unexpected entry type, " + entry.getClass().toString());
|