Enum FileDicomTagInfo.NumType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DOUBLE
      An IEEE754:1985 64-bit double is stored in the tag's value.
      FLOAT
      An IEEE754:1985 32-bit float is stored in the tag's value.
      LONG
      A signed or unsigned integer in 2's complement is stored in the tag's value.
      SHORT
      A signed or unsigned short in 2's complement is stored in the tag's value.
      VERY_LONG
      A signed or unsigned integer in 2's complement is stored in the tag's value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int numBytes  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NumType​(java.lang.String name, int numBytes, FileDicomTagInfo.VR... vr)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNumBytes()  
      java.lang.Object[] read​(byte[] data)  
      static FileDicomTagInfo.NumType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FileDicomTagInfo.NumType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      byte[] write​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SHORT

        public static final FileDicomTagInfo.NumType SHORT
        A signed or unsigned short in 2's complement is stored in the tag's value.
      • LONG

        public static final FileDicomTagInfo.NumType LONG
        A signed or unsigned integer in 2's complement is stored in the tag's value.
      • VERY_LONG

        public static final FileDicomTagInfo.NumType VERY_LONG
        A signed or unsigned integer in 2's complement is stored in the tag's value.
      • DOUBLE

        public static final FileDicomTagInfo.NumType DOUBLE
        An IEEE754:1985 64-bit double is stored in the tag's value.
    • Field Detail

      • numBytes

        private int numBytes
    • Constructor Detail

      • NumType

        private NumType​(java.lang.String name,
                        int numBytes,
                        FileDicomTagInfo.VR... vr)
    • Method Detail

      • values

        public static FileDicomTagInfo.NumType[] 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 (FileDicomTagInfo.NumType c : FileDicomTagInfo.NumType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FileDicomTagInfo.NumType 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
      • getNumBytes

        public int getNumBytes()
      • read

        public java.lang.Object[] read​(byte[] data)
        Specified by:
        read in interface DicomType
      • write

        public byte[] write​(java.lang.Object obj)
        Specified by:
        write in interface DicomType