public WorksheetEntry addWorksheet(WorksheetEntry worksheetEntry, SpreadsheetUrl worksheetfeedUrl) throws IOException { AtomContent content = AtomContent.forEntry(DICTIONARY, worksheetEntry); HttpRequest request = requestFactory.buildPostRequest(worksheetfeedUrl, content); // request.getHeaders().setIfNoneMatch(worksheetEntry.etag); return request.execute().parseAs(worksheetEntry.getClass()); }
public CellEntry addCell(WorksheetEntry we, String value, int row, int col) throws IOException { CellEntry ce = CellEntry.makeInstance(value, row, col); new CellEntry(); String link = we.getCellFeedLink(); return addCellEntry(ce, new SpreadsheetUrl(link)); }