public synchronized void flush() throws IOException { // first flush all the ext2 files for (ViewEntry entry : openedEntries) { entry.flush(); } view.flush(); }
@Override public void expandRow(final String rowPosition) { ViewNavigator nav = getNewNavigator(); nav.gotoPos(rowPosition, '.'); ViewEntry current = nav.getCurrent(); int noteId = new BigInteger(current.getNoteID(), 16).intValue(); collapsedIds_.remove(noteId); expandedIds_.add(noteId); clearCache(); }
public synchronized void close() throws IOException { try { for (ViewEntry entry : openedEntries) { entry.doClose(); } openedEntries.clear(); } finally { try { if (!sharedArchive) { archive.close(); } } finally { view.close(); } } }
@Override public int compare(ViewEntry o1, ViewEntry o2) { return o1.getName().compareTo(o2.getName()); }