- Common ways to obtain DicomDirWriter
private void myMethod () {}
public synchronized void rollback() throws IOException { if (dirtyRecords.isEmpty()) return; clearCache(); dirtyRecords.clear(); if (rollbackLen != -1) { restoreDirInfo(); nextRecordPos = rollbackLen; if (getEncodingOptions().undefSequenceLength) { writeSequenceDelimitationItem(); raf.setLength(raf.getFilePointer()); } else { raf.setLength(rollbackLen); } writeFileSetConsistencyFlag(NO_KNOWN_INCONSISTENCIES); rollbackLen = -1; } }