private final ArrayList<Attributes> dirtyRecords =
new ArrayList<Attributes>();
private DicomDirWriter(File file) throws IOException {
super(file, "rw");
out = new DicomOutputStream(new RAFOutputStreamAdapter(raf),
super.getTransferSyntaxUID());
int seqLen = in.length();
boolean undefSeqLen = seqLen <= 0;
setEncodingOptions(
new DicomEncodingOptions(false,