Package gov.nih.mipav.model.file
Class PrivateDicomDictionary
java.lang.Object
gov.nih.mipav.model.file.PrivateDicomDictionary
Note does not use hashtable since two Private keys can have same hashcode.
- Author:
- justinsenseney
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intDOCUMENT ME!static final Stringdefault dictionary file name, "dicom_dictionary.txt".private static final FileDicomTagInfoprivate static final FileDicomTagInfoprivate static TreeMap<PrivateFileDicomKey, FileDicomTagInfo> TreeMap filled with known DICOM tags with empty value attributes.static booleanprivate static final Stringprotected static final intDOCUMENT ME!static final Stringsubset dictionary file name, "dicomsave.dictionary".private static TreeMap<PrivateFileDicomKey, FileDicomTagInfo> TreeMap filled with DICOM tags which are a subset (not necessarily a proper subset) of dicom tags in the master table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether the dicom dictionary contains a tag with the given key identifier.protected static FileDicomKeyConverts group numbers of 60xx or 50xx dicom key elements so that the dicom dictionary will be able to find them.protected static booleanprotected static BufferedReadergetFileReader(String filename) Gets a buffered reader for a given file name.static FileDicomTagInfoReturn information about a key in the dicom dictionary.getPrivateDicomTagTable(boolean forceReload) Returns a reference to the DICOM Hashtable.protected static voidparseFile(int dictionary_type) Method called once when the user opens MIPAV.
-
Field Details
-
DEFAULT_DICTIONARY_FILENAME
default dictionary file name, "dicom_dictionary.txt".- See Also:
-
SUBSET_DICTIONARY_FILENAME
subset dictionary file name, "dicomsave.dictionary".- See Also:
-
PUBLISHER
- See Also:
-
DEFAULT_DICTIONARY
protected static final int DEFAULT_DICTIONARYDOCUMENT ME!- See Also:
-
SUBSET_DICTIONARY
protected static final int SUBSET_DICTIONARYDOCUMENT ME!- See Also:
-
masterPrivateTreeMap
TreeMap filled with known DICOM tags with empty value attributes. -
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
-
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
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
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
Return information about a key in the dicom dictionary.- Parameters:
key- the key to retreive information about- Returns:
- information about the requested key
-
convertToWildKey
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()
-