Enum Class VR

java.lang.Object
java.lang.Enum<VR>
org.aoju.bus.image.galaxy.data.VR
All Implemented Interfaces:
Serializable, Comparable<VR>, Constable

public enum VR extends Enum<VR>
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • AE

      public static final VR AE
    • AS

      public static final VR AS
    • AT

      public static final VR AT
    • CS

      public static final VR CS
    • DA

      public static final VR DA
    • DS

      public static final VR DS
    • DT

      public static final VR DT
    • FD

      public static final VR FD
    • FL

      public static final VR FL
    • IS

      public static final VR IS
    • LO

      public static final VR LO
    • LT

      public static final VR LT
    • OB

      public static final VR OB
    • OD

      public static final VR OD
    • OF

      public static final VR OF
    • OL

      public static final VR OL
    • OW

      public static final VR OW
    • PN

      public static final VR PN
    • SH

      public static final VR SH
    • SL

      public static final VR SL
    • SQ

      public static final VR SQ
    • SS

      public static final VR SS
    • ST

      public static final VR ST
    • TM

      public static final VR TM
    • UC

      public static final VR UC
    • UI

      public static final VR UI
    • UL

      public static final VR UL
    • UN

      public static final VR UN
    • UR

      public static final VR UR
    • US

      public static final VR US
    • UT

      public static final VR UT
  • Field Details

    • code

      protected final int code
    • headerLength

      protected final int headerLength
    • paddingByte

      protected final int paddingByte
    • valueType

      protected final ValueType valueType
    • inlineBinary

      protected final boolean inlineBinary
  • Method Details

    • values

      public static VR[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VR valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

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

      public int code()
    • headerLength

      public int headerLength()
    • paddingByte

      public int paddingByte()
    • isTemporalType

      public boolean isTemporalType()
    • isStringType

      public boolean isStringType()
    • useSpecificCharacterSet

      public boolean useSpecificCharacterSet()
    • isIntType

      public boolean isIntType()
    • isInlineBinary

      public boolean isInlineBinary()
    • numEndianBytes

      public int numEndianBytes()
    • toggleEndian

      public byte[] toggleEndian(byte[] b, boolean preserve)
    • toBytes

      public byte[] toBytes(Object val, SpecificCharacterSet cs)
    • toStrings

      public Object toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs)
    • toString

      public String toString(Object val, boolean bigEndian, int valueIndex, String defVal)
    • toInt

      public int toInt(Object val, boolean bigEndian, int valueIndex, int defVal)
    • toInts

      public int[] toInts(Object val, boolean bigEndian)
    • toFloat

      public float toFloat(Object val, boolean bigEndian, int valueIndex, float defVal)
    • toFloats

      public float[] toFloats(Object val, boolean bigEndian)
    • toDouble

      public double toDouble(Object val, boolean bigEndian, int valueIndex, double defVal)
    • toDoubles

      public double[] toDoubles(Object val, boolean bigEndian)
    • toDate

      public Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
    • toDates

      public Date[] toDates(Object val, TimeZone tz, boolean ceil, DatePrecision precisions)
    • toValue

      public Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
    • prompt

      public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
    • vmOf

      public int vmOf(Object val)