FileDocCategorySizeDatePackage
XmlSpreadsheetsGDataParser.javaAPI DocAndroid 1.5 API2426Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.spreadsheets.parser.xml

XmlSpreadsheetsGDataParser

public class XmlSpreadsheetsGDataParser extends com.google.wireless.gdata.parser.xml.XmlGDataParser
Parser helper for non-Atom data in a GData Spreadsheets meta-feed.

Fields Summary
protected static final String
WORKSHEET_FEED_REL
The rel ID used by the server to identify the URLs for the worksheets feed
Constructors Summary
public XmlSpreadsheetsGDataParser(InputStream is, XmlPullParser xmlParser)
Creates a new XmlSpreadsheetsGDataParser.

param
is the stream from which to read the data
param
xmlParser the XmlPullParser to use to parse the raw XML
throws
ParseException if the super-class throws one


                                          
        
              
        super(is, xmlParser);
    
Methods Summary
protected com.google.wireless.gdata.data.EntrycreateEntry()

        return new SpreadsheetEntry();
    
protected com.google.wireless.gdata.data.FeedcreateFeed()

        return new SpreadsheetFeed();
    
protected voidhandleExtraLinkInEntry(java.lang.String rel, java.lang.String type, java.lang.String href, com.google.wireless.gdata.data.Entry entry)

        super.handleExtraLinkInEntry(rel, type, href, entry);
        if (WORKSHEET_FEED_REL.equals(rel)
                && "application/atom+xml".equals(type)) {
            SpreadsheetEntry sheet = (SpreadsheetEntry) entry;
            sheet.setWorksheetFeedUri(href);
        }