public final class Jdt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BRANCH
The branch on which this version of Jdt was built.
|
static int |
BUILD
This constant is initialized with JdtBuild.BUILD
|
static long |
BUILDTIME
This constant is initialized with JdtBuild.BUILDTIME.
|
static java.lang.String |
DEFAULT_IMPLEMENTATION_CLASS_UID
The default implementation class UID used in the
request and acknowledge messages of an association.
|
static java.lang.String |
DEFAULT_IMPLEMENTATION_VERSION_NAME
The default implementation version name used in the
request and acknowledge messages of an association.
|
static java.lang.String |
MAJOR_VERSION
This constant is initialized with JdtBuild.MAJOR_VERSION
|
static java.lang.String |
MINOR_VERSION
This constant is initialized with JdtBuild.MINOR_VERSION
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAboutInfo()
returns a string containing information about JDT
|
static int |
getBuild()
returns the build number
|
static long |
getBuildTime()
returns the build time in milliseconds sinds January 1st, 1970.
|
static DicomCharsetCoder |
getCharsetCoder() |
static java.lang.String |
getImplementationClassUID()
returns the implementation class UID.This will be used in all
associations.
|
static java.lang.String |
getImplementationVersionName()
returns the implementation version name.This will be used in all
associations.
|
static JdtLoggerFactory |
getJdtLoggerFactory()
returns the currently installed JdtLoggerFactory
|
static long |
getMaxDataElementLength()
returns the maximum allowed length of any DICOM data element read from a file or stream
Default value is 2^32 -1.
|
static java.lang.String |
getVersion()
returns a string containing the current version number
|
static boolean |
isAllowSignedLUTData()
Old versions of the DICOM standard allowed LUT data (0028,3006) to be encoded in SS value representation
in explicit transfer syntax.
|
static boolean |
isAutoTrim()
When set to true, JDT will trim trailing whitespace when getting values of
data elements with
DicomObject.get_ge(int, int, int) and equivalent methods. |
static boolean |
isDSAsString()
returns if the DICOM type DS is mapped to a String.
|
static boolean |
isFixDA()
returns if the fixDA flag is set.
|
static boolean |
isKeepPN()
returns the keepPN flag.
|
static boolean |
isLookupDDict()
returns the lookupDDict flag.
|
static boolean |
isNoSeqDelim()
returns whether the noSeqDelim flag is set.
|
static boolean |
isPNAsByteArray() |
static boolean |
isReadFileMetaImplicit()
When set to true, a second attempt will made to reade file meta information
(group 0x0002 data elements) in implicit little endian, when reading
in explicit little endian failed.
By default this flag is set to false and an exception will be thrown when reading file meta information that is encoded in implicit little endian. Note: This property is for reading non-standard DICOM files which have file meta information encoded in implicit little endian. |
static boolean |
isReadIncompleteTag() |
static boolean |
isThrowCodingException() |
static boolean |
isUsePlatformCharset() |
static boolean |
isWriteDefaultGroupLengths() |
static boolean |
isWriteDefaultUndefLenSequences() |
static void |
main(java.lang.String[] args)
prints the version,build and buildtime to System.out
|
static void |
setAllowSignedLUTData(boolean allowSignedLUTData)
sets the allowSignedLUTData
|
static void |
setAutoTrim(boolean b) |
static void |
setDSAsString(boolean b)
set whether to map the DICOM type DS to a String.
|
static void |
setFixDA(boolean b)
sets the fixDA flag.
|
static void |
setImplementationClassUID(java.lang.String uid)
sets the implementation class UID.
|
static void |
setImplementationVersionName(java.lang.String name)
sets the implementation version name.This will be used in all
associations.
|
static void |
setJdtLoggerFactory(JdtLoggerFactory jdtLoggerFactory)
sets the JdtLoggerFactory.
|
static void |
setKeepPN(boolean b)
sets the keepPN flag.When this flag is set, JDT will keep the original value of tags with PN
value representation during reading/writing, including trailing ^ characters.
|
static void |
setLookupDDict(boolean b)
sets the lookupDDict flag.
|
static void |
setMaxDataElementLength(long maxDataElementLength)
sets the maximum allowed length of any DICOM data element read from a file or stream
The specified value must be positive and <= 2^32 -1
|
static void |
setNoSeqDelim(boolean b)
sets the noSeqDelim flag.
|
static void |
setPNAsByteArray(boolean b)
When set to true, the value of PN data elements van be set as a byte array
with the set method of DicomObject.
|
static void |
setReadFileMetaImplicit(boolean b)
sets the readFileMetaImplicit flag
|
static void |
setReadIncompleteTag(boolean b)
When set to true, if an EOFException occurs during the reading of the
data part of a data element, the data element will still be added to
the DicomObject as is.
|
static void |
setThrowCodingException(boolean b) |
static void |
setUsePlatformCharset(boolean b) |
static void |
setWriteDefaultGroupLengths(boolean b)
When set to true, the
DicomObject.write(OutputStream, boolean) and
DicomWriter.write(DicomObject, OutputStream, boolean) methods will generate
group length tags. |
static void |
setWriteDefaultUndefLenSequences(boolean b)
When set to true, the write(OutputStream out,boolean dicomfile) method
of DicomObject will write sequences with undefined length.
|
public static final java.lang.String MAJOR_VERSION
public static final java.lang.String MINOR_VERSION
public static final int BUILD
public static final long BUILDTIME
public static final java.lang.String BRANCH
public static final java.lang.String DEFAULT_IMPLEMENTATION_CLASS_UID
public static final java.lang.String DEFAULT_IMPLEMENTATION_VERSION_NAME
public static java.lang.String getVersion()
public static int getBuild()
public static long getBuildTime()
public static java.lang.String getAboutInfo()
public static boolean isDSAsString()
public static void setDSAsString(boolean b)
public static boolean isFixDA()
public static void setFixDA(boolean b)
b
- true or falsepublic static boolean isNoSeqDelim()
public static void setNoSeqDelim(boolean b)
b
- true or falsepublic static boolean isKeepPN()
public static void setKeepPN(boolean b)
b
- booleanpublic static boolean isLookupDDict()
public static void setLookupDDict(boolean b)
b
- booleanpublic static boolean isReadFileMetaImplicit()
public static void setReadFileMetaImplicit(boolean b)
b
- booleanpublic static boolean isPNAsByteArray()
public static void setPNAsByteArray(boolean b)
public static boolean isWriteDefaultUndefLenSequences()
public static void setWriteDefaultUndefLenSequences(boolean b)
b
- booleanpublic static boolean isWriteDefaultGroupLengths()
public static void setWriteDefaultGroupLengths(boolean b)
DicomObject.write(OutputStream, boolean)
and
DicomWriter.write(DicomObject, OutputStream, boolean)
methods will generate
group length tags. This property is default true and can also be initialized
by setting the system property jdt.io.grouplengths to true.b
- booleanpublic static boolean isReadIncompleteTag()
public static void setReadIncompleteTag(boolean b)
b
- booleanpublic static boolean isAutoTrim()
DicomObject.get_ge(int, int, int)
and equivalent methods.
Defaults to true. This property can be set through the system property jdt.types.autotrim.public static void setAutoTrim(boolean b)
public static void setJdtLoggerFactory(JdtLoggerFactory jdtLoggerFactory)
jdtLoggerFactory
- JdtLoggerFactorypublic static JdtLoggerFactory getJdtLoggerFactory()
public static DicomCharsetCoder getCharsetCoder()
public static void main(java.lang.String[] args)
args
- String[] no argumentspublic static boolean isThrowCodingException()
public static void setThrowCodingException(boolean b)
public static boolean isUsePlatformCharset()
public static void setUsePlatformCharset(boolean b)
public static void setImplementationClassUID(java.lang.String uid)
uid
- Stringpublic static java.lang.String getImplementationClassUID()
public static void setImplementationVersionName(java.lang.String name)
name
- Stringpublic static java.lang.String getImplementationVersionName()
public static long getMaxDataElementLength()
public static void setMaxDataElementLength(long maxDataElementLength)
maxDataElementLength
- the maximum allowed lengthpublic static boolean isAllowSignedLUTData()
public static void setAllowSignedLUTData(boolean allowSignedLUTData)
allowSignedLUTData
- boolean