public Transcoder(InputStream in, String tsuid) throws IOException { this(new DicomInputStream(in, tsuid)); }
public Transcoder(File f) throws IOException { this(new DicomInputStream(f)); }
public Transcoder(InputStream in) throws IOException { this(new DicomInputStream(in)); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); init(in.readInt()); @SuppressWarnings("resource") DicomInputStream din = new DicomInputStream(in, bigEndian ? UID.ExplicitVRBigEndianRetired : UID.ExplicitVRLittleEndian); din.readAttributes(this, -1, Tag.ItemDelimitationItem); }
@Override public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) { try (DicomInputStream dis = new DicomInputStream(path.toFile())) { Attributes dataset = dis.readDataset(-1, -1); dataset.addAll(cliAttrs); System.out.println(format.format(dataset)); } catch (IOException e) { System.err.println("Failed to parse DICOM file " + path); e.printStackTrace(); } return FileVisitResult.CONTINUE; } }
@Override public Attributes readDataset(String tsuid) throws IOException { DicomInputStream in = new DicomInputStream(this, tsuid); try { return in.readDataset(-1, -1); } finally { SafeClose.close(in); } }
private static Attributes loadDicomObject(File f) throws IOException { if (f == null) return null; DicomInputStream dis = new DicomInputStream(f); try { return dis.readDataset(-1, -1); } finally { SafeClose.close(dis); } }
private Attributes readCommand() throws IOException { DicomInputStream in = new DicomInputStream(this, UID.ImplicitVRLittleEndian); try { return in.readCommand(); } finally { SafeClose.close(in); } }
@Override public Attributes readDataset(String tsuid) throws IOException { DicomInputStream in = new DicomInputStream(this, tsuid); try { return in.readDataset(-1, -1); } finally { SafeClose.close(in); } }
private Attributes readCommand() throws IOException { DicomInputStream in = new DicomInputStream(this, UID.ImplicitVRLittleEndian); try { return in.readCommand(); } finally { SafeClose.close(in); } }
protected DataWriter createDataWriter(T inst, String tsuid) throws Exception { DicomInputStream in = new DicomInputStream(inst.getFile()); in.readFileMetaInformation(); return new InputStreamDataWriter(in); }
private static Attributes parse(File file) throws IOException { DicomInputStream in = new DicomInputStream(file); try { in.setIncludeBulkData(IncludeBulkData.NO); return in.readDataset(-1, Tag.PixelData); } finally { SafeClose.close(in); } }
private static Attributes parse(File file) throws IOException { DicomInputStream in = new DicomInputStream(file); try { in.setIncludeBulkData(IncludeBulkData.NO); return in.readDataset(-1, Tag.PixelData); } finally { SafeClose.close(in); } }
private static Attributes parse(File file) throws IOException { DicomInputStream in = new DicomInputStream(file); try { in.setIncludeBulkData(IncludeBulkData.NO); return in.readDataset(-1, Tag.PixelData); } finally { SafeClose.close(in); } }
protected DataWriter createDataWriter(T inst, String tsuid) throws Exception { DicomInputStream in = new DicomInputStream(inst.getFile()); in.readFileMetaInformation(); return new InputStreamDataWriter(in); }
private static Attributes parse(File file) throws IOException { DicomInputStream in = new DicomInputStream(file); try { in.setIncludeBulkData(IncludeBulkData.NO); return in.readDataset(-1, Tag.PixelData); } finally { SafeClose.close(in); } }
public void retrieve(File f) throws IOException, InterruptedException { Attributes attrs = new Attributes(); DicomInputStream dis = null; try { attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter); } finally { SafeClose.close(dis); } attrs.addAll(keys); retrieve(attrs); }
public void retrieve(File f) throws IOException, InterruptedException { Attributes attrs = new Attributes(); DicomInputStream dis = null; try { attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter); } finally { SafeClose.close(dis); } attrs.addAll(keys); retrieve(attrs); }
@SuppressWarnings("resource") public void retrieve(File f) throws IOException, InterruptedException { Attributes attrs = new Attributes(); DicomInputStream dis = null; try { attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter); } finally { SafeClose.close(dis); } attrs.addAll(keys); retrieve(attrs); }
public void retrieve(File f) throws IOException, InterruptedException { Attributes attrs = new Attributes(); DicomInputStream dis = null; try { attrs.addSelected(new DicomInputStream(f).readDataset(-1, -1), inFilter); } finally { SafeClose.close(dis); } attrs.addAll(keys); retrieve(attrs); }