Class PrivateDicomDictionary

java.lang.Object
gov.nih.mipav.model.file.PrivateDicomDictionary

public class PrivateDicomDictionary extends Object
Note does not use hashtable since two Private keys can have same hashcode.
Author:
justinsenseney
  • Field Details

    • DEFAULT_DICTIONARY_FILENAME

      public static final String DEFAULT_DICTIONARY_FILENAME
      default dictionary file name, "dicom_dictionary.txt".
      See Also:
    • SUBSET_DICTIONARY_FILENAME

      public static final String SUBSET_DICTIONARY_FILENAME
      subset dictionary file name, "dicomsave.dictionary".
      See Also:
    • PUBLISHER

      private static final String PUBLISHER
      See Also:
    • DEFAULT_DICTIONARY

      protected static final int DEFAULT_DICTIONARY
      DOCUMENT ME!
      See Also:
    • SUBSET_DICTIONARY

      protected static final int SUBSET_DICTIONARY
      DOCUMENT ME!
      See Also:
    • masterPrivateTreeMap

      private static TreeMap<PrivateFileDicomKey,FileDicomTagInfo> masterPrivateTreeMap
      TreeMap filled with known DICOM tags with empty value attributes.
    • subsetTreeMap

      private static TreeMap<PrivateFileDicomKey,FileDicomTagInfo> subsetTreeMap
      TreeMap filled with DICOM tags which are a subset (not necessarily a proper subset) of dicom tags in the master table. This subset is then used to export dicom tags to the XML image format.
    • privateDictionaryProcessed

      public static boolean privateDictionaryProcessed
    • groupLengthInfo

      private static final FileDicomTagInfo groupLengthInfo
    • groupNameInfo

      private static final FileDicomTagInfo groupNameInfo
  • Constructor Details

    • PrivateDicomDictionary

      public PrivateDicomDictionary()
  • Method Details

    • getPrivateDicomTagTable

      public static TreeMap<PrivateFileDicomKey,FileDicomTagInfo> getPrivateDicomTagTable(boolean forceReload)
      Returns a reference to the DICOM Hashtable.
      Parameters:
      forceReload - If true, forces the master tag table to be re-read from the dicom dictionary file
      Returns:
      a reference to the dicom tag table
    • containsTag

      public static boolean containsTag(PrivateFileDicomKey key)
      Returns whether the dicom dictionary contains a tag with the given key identifier.
      Parameters:
      key - the key for this tag
      Returns:
      whether a tag matching the given key is contained in the dicom dictionary.
    • getFileReader

      protected static BufferedReader getFileReader(String filename)
      Gets a buffered reader for a given file name.
      Parameters:
      filename - The file we will be reading.
      Returns:
      A reader for the given file name.
    • getInfo

      public static FileDicomTagInfo getInfo(PrivateFileDicomKey key)
      Return information about a key in the dicom dictionary.
      Parameters:
      key - the key to retreive information about
      Returns:
      information about the requested key
    • convertToWildKey

      protected static FileDicomKey convertToWildKey(PrivateFileDicomKey key)
      Converts group numbers of 60xx or 50xx dicom key elements so that the dicom dictionary will be able to find them.
    • parseFile

      protected static void parseFile(int dictionary_type)
      Method called once when the user opens MIPAV. It parses the dictionary file, normally called "dicom_dictionary.txt". The dictionary file is where all the tags are listed and stores these in the DICOMHashtable, with empty value attributes.
      See Also:
    • doParseFile

      protected static boolean doParseFile()