public static DicomDirWriter open(File file) throws IOException { if (file.createNewFile()) { DicomDirWriter.createEmptyDirectory(file, UIDUtils.createUID(), null, null, null); } return DicomDirWriter.open(file); } }
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 openDicomDir() throws IOException { if (!dicomDir.exists()) DicomDirWriter.createEmptyDirectory(dicomDir, UIDUtils.createUIDIfNull(fsInfo.getFilesetUID()), fsInfo.getFilesetID(), fsInfo.getDescriptorFile(), fsInfo.getDescriptorFileCharset()); ddReader = ddWriter = DicomDirWriter.open(dicomDir); }
private void openDicomDir() throws IOException { if (!dicomDir.exists()) DicomDirWriter.createEmptyDirectory(dicomDir, UIDUtils.createUIDIfNull(fsInfo.getFilesetUID()), fsInfo.getFilesetID(), fsInfo.getDescriptorFile(), fsInfo.getDescriptorFileCharset()); ddReader = ddWriter = DicomDirWriter.open(dicomDir); }
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 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); }