|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.archimed.dicom.DumpUtils
public class DumpUtils
With DumpUtils the contents of a DicomObject can be written to an outputstream in a human readable tabular format. Non-significant whitespace is preserved in the dumped content.
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DumpUtils(boolean metainfo,
boolean grouplengths)
metainfo - booleangrouplengths - boolean
public 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 lengths
public 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 not| Method Detail |
|---|
public static java.lang.String toHexString(byte b)
b -
public 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 - out -
java.io.IOException
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||