Enum Class BinaryValueType

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

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

  • Method Details

    • values

      public static BinaryValueType[] 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 BinaryValueType 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
    • isIntValue

      public boolean isIntValue()
      Specified by:
      isIntValue in interface ValueType
    • isStringValue

      public boolean isStringValue()
      Specified by:
      isStringValue in interface ValueType
    • useSpecificCharacterSet

      public boolean useSpecificCharacterSet()
      Specified by:
      useSpecificCharacterSet in interface ValueType
    • isTemporalType

      public boolean isTemporalType()
      Specified by:
      isTemporalType in interface ValueType
    • numEndianBytes

      public int numEndianBytes()
      Specified by:
      numEndianBytes in interface ValueType
    • toString

      protected String toString(byte[] b, int off, boolean bigEndian)
    • toInt

      protected int toInt(byte[] b, int off, boolean bigEndian)
    • toFloat

      protected float toFloat(byte[] b, int off, boolean bigEndian)
    • toDouble

      protected double toDouble(byte[] b, int off, boolean bigEndian)
    • toBytes

      protected byte[] toBytes(String s, byte[] b, int off, boolean bigEndian)
    • toBytes

      protected byte[] toBytes(int i, byte[] b, int off, boolean bigEndian)
    • toBytes

      protected byte[] toBytes(float f, byte[] b, int off, boolean bigEndian)
    • toBytes

      protected byte[] toBytes(double d, byte[] b, int off, boolean bigEndian)
    • toBytes

      public byte[] toBytes(Object val, SpecificCharacterSet cs)
      Specified by:
      toBytes in interface ValueType
    • toString

      public String toString(Object val, boolean bigEndian, int valueIndex, String defVal)
      Specified by:
      toString in interface ValueType
    • toStrings

      public Object toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs)
      Specified by:
      toStrings in interface ValueType
    • toInt

      public int toInt(Object val, boolean bigEndian, int valueIndex, int defVal)
      Specified by:
      toInt in interface ValueType
    • toInts

      public int[] toInts(Object val, boolean bigEndian)
      Specified by:
      toInts in interface ValueType
    • toFloat

      public float toFloat(Object val, boolean bigEndian, int valueIndex, float defVal)
      Specified by:
      toFloat in interface ValueType
    • toFloats

      public float[] toFloats(Object val, boolean bigEndian)
      Specified by:
      toFloats in interface ValueType
    • toDouble

      public double toDouble(Object val, boolean bigEndian, int valueIndex, double defVal)
      Specified by:
      toDouble in interface ValueType
    • toDoubles

      public double[] toDoubles(Object val, boolean bigEndian)
      Specified by:
      toDoubles in interface ValueType
    • toDate

      public Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
      Specified by:
      toDate in interface ValueType
    • toDate

      public Date[] toDate(Object val, TimeZone tz, boolean ceil, DatePrecision precisions)
      Specified by:
      toDate in interface ValueType
    • toValue

      public Object toValue(byte[] b)
      Specified by:
      toValue in interface ValueType
    • toValue

      public Object toValue(String s, boolean bigEndian)
      Specified by:
      toValue in interface ValueType
    • toValue

      public Object toValue(String[] ss, boolean bigEndian)
      Specified by:
      toValue in interface ValueType
    • toValue

      public Object toValue(int[] is, boolean bigEndian)
      Specified by:
      toValue in interface ValueType
    • toValue

      public Object toValue(float[] fs, boolean bigEndian)
      Specified by:
      toValue in interface ValueType
    • toValue

      public Object toValue(double[] ds, boolean bigEndian)
      Specified by:
      toValue in interface ValueType
    • toValue

      public Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
      Specified by:
      toValue in interface ValueType
    • prompt

      public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
      Specified by:
      prompt in interface ValueType
    • vmOf

      public int vmOf(Object val)
      Specified by:
      vmOf in interface ValueType