コード例 #1
0
  public void downloadFile(String attachmentName, File outputFile) throws Exception {

    FileOutputStream fos = new FileOutputStream(outputFile);

    JSONObject doc = getDoc();
    dd.getDatabase().downloadAttachment(doc, attachmentName, fos);

    fos.flush();
    fos.close();
  }
コード例 #2
0
 @Override
 public void createDocument(JSONObject doc) throws Exception {
   dd.getDatabase().createDocument(doc);
 }
コード例 #3
0
 public CouchClient getClient() {
   return dd.getDatabase().getClient();
 }
コード例 #4
0
 public CouchDb getDatabase() {
   return dd.getDatabase();
 }