Enum DicomToJsonFlags

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DicomToJsonFlags>

    public enum DicomToJsonFlags
    extends java.lang.Enum<DicomToJsonFlags>
    Flags to customize a DICOM-to-JSON conversion. By default, binary tags are formatted using Data URI scheme.
    • Enum Constant Detail

      • INCLUDE_BINARY

        public static final DicomToJsonFlags INCLUDE_BINARY
        Include the binary tags
      • INCLUDE_PRIVATE_TAGS

        public static final DicomToJsonFlags INCLUDE_PRIVATE_TAGS
        Include the private tags
      • INCLUDE_UNKNOWN_TAGS

        public static final DicomToJsonFlags INCLUDE_UNKNOWN_TAGS
        Include the tags unknown by the dictionary
      • INCLUDE_PIXEL_DATA

        public static final DicomToJsonFlags INCLUDE_PIXEL_DATA
        Include the pixel data
      • CONVERT_BINARY_TO_ASCII

        public static final DicomToJsonFlags CONVERT_BINARY_TO_ASCII
        Output binary tags as-is, dropping non-ASCII
      • CONVERT_BINARY_TO_NULL

        public static final DicomToJsonFlags CONVERT_BINARY_TO_NULL
        Signal binary tags as null values
      • STOP_AFTER_PIXEL_DATA

        public static final DicomToJsonFlags STOP_AFTER_PIXEL_DATA
        Stop processing after pixel data (new in 1.9.1)
      • SKIP_GROUP_LENGTHS

        public static final DicomToJsonFlags SKIP_GROUP_LENGTHS
        Skip tags whose element is zero (new in 1.9.1)
    • Method Detail

      • values

        public static DicomToJsonFlags[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DicomToJsonFlags c : DicomToJsonFlags.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DicomToJsonFlags valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getInstance

        protected static DicomToJsonFlags getInstance​(int value)
        Return the enumeration value that corresponds to an integer value of interest.
        Parameters:
        value - The integer value.
        Returns:
        The enumeration value.
      • getValue

        public int getValue()
        Get the integer value corresponding to this enumeration value.
        Returns:
        The integer value.