Package com.google.gdata.data.spreadsheet

Examples of com.google.gdata.data.spreadsheet.TableFeed


  public List<Map<String, String>> getAllWorkSheets(String ssKey) throws IOException,
      ServiceException {

    FeedURLFactory urlFactory = FeedURLFactory.getDefault();
    URL tableFeedUrl = urlFactory.getTableFeedUrl(ssKey);
    TableFeed feed = ss.getFeed(tableFeedUrl, TableFeed.class);
    List<TableEntry> entries = feed.getEntries();

    List<Map<String, String>> list = new ArrayList<Map<String, String>>();
    for (TableEntry entry : entries) {
      Map<String, String> row = new HashMap<String, String>();
      row.put("wsTitle", entry.getTitle().getPlainText());
View Full Code Here


    FeedURLFactory factory = FeedURLFactory.getDefault();
    URL tableFeedUrl = factory.getTableFeedUrl(ssKey);

    // Check if already exists.
    TableEntry tableEntry = null;
    TableFeed feed = ss.getFeed(tableFeedUrl, TableFeed.class);
    for (TableEntry entry : feed.getEntries()) {
      if (entry.getTitle().getPlainText().equals(kind)) {
        tableEntry = entry;
        logger.info("TableFeed:" + kind + " already exists.");
        break;
      }
View Full Code Here

   *         Spreadsheets service.
   * @throws IOException when an error occurs in communication with the Google
   *         Spreadsheets service.
   */
  public void listAllEntries() throws IOException, ServiceException {
    TableFeed feed = service.getFeed(tablesFeedUrl, TableFeed.class);

    for (TableEntry entry : feed.getEntries()) {
      printAndCacheEntry(entry);
    }
    if (feed.getEntries().size() == 0) {
      System.out.println("No entries yet!");
    }
  }
View Full Code Here

  public void search(String titleSearchString) throws IOException,
      ServiceException {
    TableQuery query = new TableQuery(tablesFeedUrl);
   
    query.setTitleQuery(titleSearchString);
    TableFeed feed = service.query(query, TableFeed.class);

    out.println("Results for [" + titleSearchString + "]");

    for (TableEntry entry : feed.getEntries()) {
      printAndCacheEntry(entry);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.spreadsheet.TableFeed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.