public class DcmDump extends Object implements DicomInputHandler
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_WIDTH
default number of characters per line
|
private static ResourceBundle |
rb |
private int |
width |
Constructor and Description |
---|
DcmDump() |
Modifier and Type | Method and Description |
---|---|
private void |
appendFragment(StringBuilder line,
DicomInputStream dis,
VR vr) |
private void |
appendHeader(DicomInputStream dis,
StringBuilder line) |
private void |
appendKeyword(DicomInputStream dis,
StringBuilder line) |
private void |
appendNumber(int number,
StringBuilder line) |
private void |
appendPrefix(DicomInputStream dis,
StringBuilder line) |
void |
endDataset(DicomInputStream dis) |
private static String |
fname(List<String> argList) |
int |
getWidth() |
static void |
main(String[] args) |
void |
parse(DicomInputStream dis) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
private void |
promptPreamble(byte[] preamble) |
void |
readValue(DicomInputStream dis,
Attributes attrs) |
void |
readValue(DicomInputStream dis,
Fragments frags) |
void |
readValue(DicomInputStream dis,
Sequence seq) |
void |
setWidth(int width) |
void |
startDataset(DicomInputStream dis) |
private static ResourceBundle rb
private static final int DEFAULT_WIDTH
private int width
public DcmDump()
public final int getWidth()
public final void setWidth(int width)
public void parse(DicomInputStream dis) throws IOException
IOException
public void startDataset(DicomInputStream dis) throws IOException
startDataset
in interface DicomInputHandler
IOException
public void endDataset(DicomInputStream dis) throws IOException
endDataset
in interface DicomInputHandler
IOException
public void readValue(DicomInputStream dis, Attributes attrs) throws IOException
readValue
in interface DicomInputHandler
IOException
public void readValue(DicomInputStream dis, Sequence seq) throws IOException
readValue
in interface DicomInputHandler
IOException
public void readValue(DicomInputStream dis, Fragments frags) throws IOException
readValue
in interface DicomInputHandler
IOException
private void appendPrefix(DicomInputStream dis, StringBuilder line)
private void appendHeader(DicomInputStream dis, StringBuilder line)
private void appendKeyword(DicomInputStream dis, StringBuilder line)
private void appendNumber(int number, StringBuilder line)
private void appendFragment(StringBuilder line, DicomInputStream dis, VR vr) throws IOException
IOException
private void promptPreamble(byte[] preamble)
private static String fname(List<String> argList) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
Copyright © 2017 dcm4che.org. All rights reserved.