private void appendKeyword(DicomInputStream dis, StringBuilder line) { if (line.length() < width) { line.append(" "); line.append(ElementDictionary.keywordOf(dis.tag(), null)); if (line.length() > width) line.setLength(width); } }
private void appendKeyword(DicomInputStream dis, StringBuilder line) { if (line.length() < width) { line.append(" "); line.append(ElementDictionary.keywordOf(dis.tag(), null)); if (line.length() > width) line.setLength(width); } }
private void appendHeader(DicomInputStream dis, StringBuilder line) { line.append(TagUtils.toString(dis.tag())).append(' '); VR vr = dis.vr(); if (vr != null) line.append(vr).append(' '); line.append('#').append(dis.length()); }
private void appendHeader(DicomInputStream dis, StringBuilder line) { line.append(TagUtils.toString(dis.tag())).append(' '); VR vr = dis.vr(); if (vr != null) line.append(vr).append(' '); line.append('#').append(dis.length()); }
protected DicomDirReader(File file, String mode) throws IOException { this.file = file; this.raf = new RandomAccessFile(file, mode); try { this.in = new DicomInputStream(new RAFInputStreamAdapter(raf)); this.fmi = in.readFileMetaInformation(); this.fsInfo = in.readDataset(-1, Tag.DirectoryRecordSequence); if (in.tag() != Tag.DirectoryRecordSequence) throw new IOException("Missing Directory Record Sequence"); } catch (IOException e) { SafeClose.close(raf); throw e; } }
int tag = dis.tag(); byte[] b = dis.readValue(); line.append(" [");
int tag = dis.tag(); byte[] b = dis.readValue(); line.append(" [");
@Override public void readValue(DicomInputStream dis, Attributes attrs) throws IOException { int tag = dis.tag(); if (dis.level() == 0 && tag == Tag.PixelData) { imageDescriptor = new ImageDescriptor(attrs); initDicomOutputStream(); processPixelData(); postPixelData = new Attributes(dis.bigEndian()); } else { dis.readValue(dis, attrs); if (postPixelData != null && dis.level() == 0) postPixelData.addSelected(attrs, attrs.getPrivateCreator(tag), tag); } }
Attributes fmi = dis.readFileMetaInformation(); Attributes ds = dis.readDataset(-1, Tag.PixelData); if (dis.tag() == Tag.PixelData) { imageDescriptor = new ImageDescriptor(ds); pixelDataVR = dis.vr(); Attributes fmi = dis.readFileMetaInformation(); Attributes ds = dis.readDataset(-1, Tag.PixelData); if( dis.tag() == Tag.PixelData ) { imageDescriptor = new ImageDescriptor(ds); pixelDataVR = dis.vr();
@Override public void readValue(DicomInputStream dis, Attributes attrs) throws IOException { int tag = dis.tag(); VR vr = dis.vr(); int len = dis.length();
@Override public void readValue(DicomInputStream dis, Attributes attrs) throws IOException { int tag = dis.tag(); VR vr = dis.vr(); int len = dis.length();