Trispark JDT
2.50.13

com.archimed.dicom
Class Jdt

java.lang.Object
  extended by com.archimed.dicom.Jdt

public final class Jdt
extends java.lang.Object

Utility class for getting information about this JDT release and for setting/getting global properties. Global properties can be initialized during the loading of this class, by defining a corresponding system property. Version,build number and build time are initialized from the JdtBuild class.


Field Summary
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
 
Method Summary
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 java.lang.String getVersion()
          returns a string containing the current version number
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 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR_VERSION

public static final java.lang.String MAJOR_VERSION
This constant is initialized with JdtBuild.MAJOR_VERSION


MINOR_VERSION

public static final java.lang.String MINOR_VERSION
This constant is initialized with JdtBuild.MINOR_VERSION


BUILD

public static final int BUILD
This constant is initialized with JdtBuild.BUILD


BUILDTIME

public static final long BUILDTIME
This constant is initialized with JdtBuild.BUILDTIME. It contains the time build expressed in milliseconds since January 1st, 1970


DEFAULT_IMPLEMENTATION_CLASS_UID

public static final java.lang.String DEFAULT_IMPLEMENTATION_CLASS_UID
The default implementation class UID used in the request and acknowledge messages of an association. Implementations can specify a different UID with setImplementationClassUID().

See Also:
Constant Field Values

DEFAULT_IMPLEMENTATION_VERSION_NAME

public static final java.lang.String DEFAULT_IMPLEMENTATION_VERSION_NAME
The default implementation version name used in the request and acknowledge messages of an association. Implementations can specify a different implementation version name with setImplementationVersionName().

Method Detail

getVersion

public static java.lang.String getVersion()
returns a string containing the current version number


getBuild

public static int getBuild()
returns the build number


getBuildTime

public static long getBuildTime()
returns the build time in milliseconds sinds January 1st, 1970.

Returns:

getAboutInfo

public static java.lang.String getAboutInfo()
returns a string containing information about JDT


isDSAsString

public static boolean isDSAsString()
returns if the DICOM type DS is mapped to a String. By default this is false and the DS type is mapped to a Float.


setDSAsString

public static void setDSAsString(boolean b)
set whether to map the DICOM type DS to a String. This property can be initialized by setting the system property jdt.types.dsstring to true.


isFixDA

public static boolean isFixDA()
returns if the fixDA flag is set. When set JDT will try to read and fix DA type tags with zero length in the length field of the tag but with actual length 8. This property can be initialized by setting the system property jdt.types.fixda to true.

Returns:

setFixDA

public static void setFixDA(boolean b)
sets the fixDA flag.

Parameters:
b -

isNoSeqDelim

public static boolean isNoSeqDelim()
returns whether the noSeqDelim flag is set. When set JDT will try to read empty sequences with a missing sequence delimitation tag.

Returns:

setNoSeqDelim

public static void setNoSeqDelim(boolean b)
sets the noSeqDelim flag. When set JDT will try to read empty sequences with a missing sequence delimitation tag. This property can be initialized by setting the system property jdt.types.noseqdelim to true.

Parameters:
b -

isKeepPN

public static boolean isKeepPN()
returns 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.

Returns:
boolean

setKeepPN

public 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.

Parameters:
b - boolean

isLookupDDict

public static boolean isLookupDDict()
returns the lookupDDict flag. When set, the VR of data elements sent in explicit transfer syntax will be overruled with the VR specified in the dictionary (DDict) for data elements that have an entry in DDict.

Returns:
boolean

setLookupDDict

public static void setLookupDDict(boolean b)
sets the lookupDDict flag.

Parameters:
b - boolean

isReadFileMetaImplicit

public 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.

Returns:
boolean

setReadFileMetaImplicit

public static void setReadFileMetaImplicit(boolean b)
sets the readFileMetaImplicit flag

Parameters:
b - boolean

isPNAsByteArray

public static boolean isPNAsByteArray()

setPNAsByteArray

public 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.


isWriteDefaultUndefLenSequences

public static boolean isWriteDefaultUndefLenSequences()

setWriteDefaultUndefLenSequences

public static void setWriteDefaultUndefLenSequences(boolean b)
When set to true, the write(OutputStream out,boolean dicomfile) method of DicomObject will write sequences with undefined length. The default value of the flag is 'true'.

Parameters:
b - boolean

isWriteDefaultGroupLengths

public static boolean isWriteDefaultGroupLengths()
Returns:
boolean

setWriteDefaultGroupLengths

public 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. This property is default true and can also be initialized by setting the system property jdt.io.grouplengths to true.

Parameters:
b - boolean

isReadIncompleteTag

public static boolean isReadIncompleteTag()

setReadIncompleteTag

public 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. When set to false (default) a data element that is read incomplete because of an EOFException will not be added to the DicomObject.

Parameters:
b - boolean

setJdtLoggerFactory

public static void setJdtLoggerFactory(JdtLoggerFactory jdtLoggerFactory)
sets the JdtLoggerFactory. Use this to provide alternative logging implementations to JDT. By default the DefaultJdtLoggerFactory will be installed and set to level OFF, meaning no logging.

Parameters:
jdtLoggerFactory - JdtLoggerFactory

getJdtLoggerFactory

public static JdtLoggerFactory getJdtLoggerFactory()
returns the currently installed JdtLoggerFactory

Returns:
JdtLoggerFactory

getCharsetCoder

public static DicomCharsetCoder getCharsetCoder()

main

public static void main(java.lang.String[] args)
prints the version,build and buildtime to System.out

Parameters:
args - String[] no arguments

isThrowCodingException

public static boolean isThrowCodingException()

setThrowCodingException

public static void setThrowCodingException(boolean b)

isUsePlatformCharset

public static boolean isUsePlatformCharset()

setUsePlatformCharset

public static void setUsePlatformCharset(boolean b)

setImplementationClassUID

public static void setImplementationClassUID(java.lang.String uid)
sets the implementation class UID. This will be used in all associations.

Parameters:
uid -

getImplementationClassUID

public static java.lang.String getImplementationClassUID()
returns the implementation class UID.This will be used in all associations.

Returns:

setImplementationVersionName

public static void setImplementationVersionName(java.lang.String name)
sets the implementation version name.This will be used in all associations. An implementation version name cannot exceed 16 characters.

Parameters:
name -

getImplementationVersionName

public static java.lang.String getImplementationVersionName()
returns the implementation version name.This will be used in all associations.

Returns:

Trispark JDT
2.50.13

Copyright © 1999-2008 Trispark. All Rights Reserved.