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(); }
@Override public void createDocument(JSONObject doc) throws Exception { dd.getDatabase().createDocument(doc); }
public CouchClient getClient() { return dd.getDatabase().getClient(); }
public CouchDb getDatabase() { return dd.getDatabase(); }