public class DumpUtils
extends java.lang.Object
Constructor and Description |
---|
DumpUtils(boolean metainfo,
boolean grouplengths)
constructs a DumpUtils object with maxdescription 35, maxvalue 60 and
indent size 6.
|
DumpUtils(int maxdescription,
int maxvalue,
int indentsize,
boolean metainfo) |
DumpUtils(int maxdescription,
int maxvalue,
int indentsize,
boolean metainfo,
boolean grouplengths) |
Modifier and Type | Method and Description |
---|---|
void |
dump(DicomObject dcm,
java.io.OutputStream out)
write the contents of a DicomObject to an outputstream in a
tabular format.
|
void |
dump(DicomObject dcm,
java.lang.StringBuffer stringBuffer) |
static java.lang.String |
tagDescriptionString(int g,
int e) |
static java.lang.String |
tagString(int g,
int e) |
static java.lang.String |
toHexString(byte b)
returns a 2 digit hex String representation of the specified byte
|
static java.lang.String |
toHexString(int i,
int n) |
protected transient JdtLogger log
public DumpUtils(boolean metainfo, boolean grouplengths)
metainfo
- booleangrouplengths
- booleanpublic DumpUtils(int maxdescription, int maxvalue, int indentsize, boolean metainfo, boolean grouplengths)
maxdescription
- the maximum number of characters for the tag description columnmaxvalue
- the maximum number of characters for the the tag value columnindentsize
- the number of characters to indent when a sequence is encounteredmetainfo
- also dump the file metainformation or notgrouplengths
- dump group lengthspublic DumpUtils(int maxdescription, int maxvalue, int indentsize, boolean metainfo)
maxdescription
- the maximum number of characters for the tag description columnmaxvalue
- the maximum number of characters for the the tag value columnindentsize
- the number of characters to indent when a sequence is encounteredmetainfo
- also dump the file metainformation or notpublic static java.lang.String toHexString(byte b)
b
- bytepublic static java.lang.String toHexString(int i, int n)
public static java.lang.String tagString(int g, int e)
public static java.lang.String tagDescriptionString(int g, int e)
public void dump(DicomObject dcm, java.lang.StringBuffer stringBuffer) throws java.io.IOException
java.io.IOException
public void dump(DicomObject dcm, java.io.OutputStream out) throws java.io.IOException
dcm
- DicomObjectout
- OutputStreamjava.io.IOException
- -