private void open(File file) throws IOException { this.file = file; in = out = DicomDirWriter.open(file); if (!origSeqLength) out.setEncodingOptions(encOpts); setCheckDuplicate(true); }
private void open(File file) throws IOException { this.file = file; in = out = DicomDirWriter.open(file); if (!origSeqLength) out.setEncodingOptions(encOpts); setCheckDuplicate(true); }
private void create(File file) throws IOException { this.file = file; DicomDirWriter.createEmptyDirectory(file, UIDUtils.createUIDIfNull(fsInfo.getFilesetUID()), fsInfo.getFilesetID(), fsInfo.getDescriptorFile(), fsInfo.getDescriptorFileCharset()); in = out = DicomDirWriter.open(file); out.setEncodingOptions(encOpts); setCheckDuplicate(false); }
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, undefSeqLen, false, undefSeqLen, false)); this.nextRecordPos = this.firstRecordPos = (int) in.getPosition(); if (!isEmpty()) { if (seqLen > 0) this.nextRecordPos += seqLen; else this.nextRecordPos = (int) (raf.length() - 12); } updateDirInfoHeader(); }
private void create(File file) throws IOException { this.file = file; DicomDirWriter.createEmptyDirectory(file, UIDUtils.createUIDIfNull(fsInfo.getFilesetUID()), fsInfo.getFilesetID(), fsInfo.getDescriptorFile(), fsInfo.getDescriptorFileCharset()); in = out = DicomDirWriter.open(file); out.setEncodingOptions(encOpts); setCheckDuplicate(false); }