private void writeCategories(QifBufferedWriter qifWriter) throws IOException { if (!categories.isEmpty()) { qifWriter.writeCategoriesHeader(); for (Category c : categories) { writeCategory(qifWriter, c); } } }
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(); }