Methods Summary |
---|
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 XmlSubscribedFeedsGDataParser(is, xmlParser);
|
public com.google.wireless.gdata.parser.GDataParser | createParser(java.lang.Class entryClass, java.io.InputStream is)
if (entryClass != SubscribedFeedsEntry.class) {
throw new IllegalArgumentException(
"SubscribedFeeds supports only a single feed type");
}
// we don't have feed sub-types, so just return the default
return createParser(is);
|
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 SubscribedFeedsEntry}.
if (!(entry instanceof SubscribedFeedsEntry)) {
throw new IllegalArgumentException(
"Expected SubscribedFeedsEntry!");
}
SubscribedFeedsEntry subscribedFeedsEntry =
(SubscribedFeedsEntry) entry;
return new XmlSubscribedFeedsEntryGDataSerializer(xmlFactory,
subscribedFeedsEntry);
|