public void clear() { table.clear(); charset = null; }
public void clearCache() { cache.clear(); }
private void onClosed() { if (ae != null) ae.removeFromPool(this); reaper.unregister(this); synchronized (rspHandlerForMsgId) { rspHandlerForMsgId.accept(new IntHashtable.Visitor() { public boolean visit(int key, Object value) { ((DimseRSPHandler) value).onClosed(Association.this); return true; } }); rspHandlerForMsgId.clear(); rspHandlerForMsgId.notifyAll(); } if (ae != null) { ae.associationClosed(this); } }
public synchronized void rollback() throws IOException { filesetInfo.setOffsetFirstRootRecord(offsetFirstRootRecord()); filesetInfo.setOffsetLastRootRecord(offsetLastRootRecord()); cache.clear(); cachedParentRecord = null; cachedLastChildRecord = null; dirtyRecords.clear(); if (rollbackLen != -1) { recordSeqLen = rollbackLen - firstRecordPos; raf.seek(rollbackLen); if (!out.isExplicitSequenceLength() && !isEmpty()) { out.writeHeader(Tag.SequenceDelimitationItem, null, 0); } raf.setLength(raf.getFilePointer()); rollbackLen = -1; raf.seek(firstRecordPos - 14); raf.writeShort(FileSetInformation.NO_KNOWN_INCONSISTENCIES); filesetInfo.setFileSetConsistencyFlag( FileSetInformation.NO_KNOWN_INCONSISTENCIES); } }