예제 #1
0
 private void writeCategories(QifBufferedWriter qifWriter) throws IOException {
   if (!categories.isEmpty()) {
     qifWriter.writeCategoriesHeader();
     for (Category c : categories) {
       writeCategory(qifWriter, c);
     }
   }
 }
예제 #2
0
 public QifExport(Context context, DatabaseAdapter db, QifExportOptions options) {
   super(context, false);
   this.db = db;
   this.em = db.em();
   this.options = options;
   this.categories = db.getCategoriesTree(false);
   this.categoriesMap = categories.asMap();
   this.accountsMap = db.em().getAllAccountsMap();
 }