public enum BinaryValueType extends Enum<BinaryValueType> implements ValueType
| Enum Constant and Description |
|---|
BYTE |
DOUBLE |
FLOAT |
INT |
SHORT |
TAG |
UINT |
USHORT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIntValue() |
boolean |
isStringValue() |
boolean |
isTemporalType() |
int |
numEndianBytes() |
boolean |
prompt(Object val,
boolean bigEndian,
SpecificCharacterSet cs,
int maxChars,
StringBuilder sb) |
protected byte[] |
toBytes(double d,
byte[] b,
int off,
boolean bigEndian) |
protected byte[] |
toBytes(float f,
byte[] b,
int off,
boolean bigEndian) |
protected byte[] |
toBytes(int i,
byte[] b,
int off,
boolean bigEndian) |
byte[] |
toBytes(Object val,
SpecificCharacterSet cs) |
protected byte[] |
toBytes(String s,
byte[] b,
int off,
boolean bigEndian) |
Date[] |
toDate(Object val,
TimeZone tz,
boolean ceil,
DatePrecision precisions) |
Date |
toDate(Object val,
TimeZone tz,
int valueIndex,
boolean ceil,
Date defVal,
DatePrecision precision) |
protected double |
toDouble(byte[] b,
int off,
boolean bigEndian) |
double |
toDouble(Object val,
boolean bigEndian,
int valueIndex,
double defVal) |
double[] |
toDoubles(Object val,
boolean bigEndian) |
protected float |
toFloat(byte[] b,
int off,
boolean bigEndian) |
float |
toFloat(Object val,
boolean bigEndian,
int valueIndex,
float defVal) |
float[] |
toFloats(Object val,
boolean bigEndian) |
protected int |
toInt(byte[] b,
int off,
boolean bigEndian) |
int |
toInt(Object val,
boolean bigEndian,
int valueIndex,
int defVal) |
int[] |
toInts(Object val,
boolean bigEndian) |
protected String |
toString(byte[] b,
int off,
boolean bigEndian) |
String |
toString(Object val,
boolean bigEndian,
int valueIndex,
String defVal) |
Object |
toStrings(Object val,
boolean bigEndian,
SpecificCharacterSet cs) |
Object |
toValue(byte[] b) |
Object |
toValue(Date[] ds,
TimeZone tz,
DatePrecision precision) |
Object |
toValue(double[] ds,
boolean bigEndian) |
Object |
toValue(float[] fs,
boolean bigEndian) |
Object |
toValue(int[] is,
boolean bigEndian) |
Object |
toValue(String[] ss,
boolean bigEndian) |
Object |
toValue(String s,
boolean bigEndian) |
boolean |
useSpecificCharacterSet() |
static BinaryValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
vmOf(Object val) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoggleEndianpublic static final BinaryValueType BYTE
public static final BinaryValueType SHORT
public static final BinaryValueType USHORT
public static final BinaryValueType INT
public static final BinaryValueType UINT
public static final BinaryValueType TAG
public static final BinaryValueType FLOAT
public static final BinaryValueType DOUBLE
public static BinaryValueType[] values()
for (BinaryValueType c : BinaryValueType.values()) System.out.println(c);
public static BinaryValueType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isIntValue()
isIntValue in interface ValueTypepublic boolean isStringValue()
isStringValue in interface ValueTypepublic boolean useSpecificCharacterSet()
useSpecificCharacterSet in interface ValueTypepublic boolean isTemporalType()
isTemporalType in interface ValueTypepublic int numEndianBytes()
numEndianBytes in interface ValueTypeprotected String toString(byte[] b, int off, boolean bigEndian)
protected int toInt(byte[] b,
int off,
boolean bigEndian)
protected float toFloat(byte[] b,
int off,
boolean bigEndian)
protected double toDouble(byte[] b,
int off,
boolean bigEndian)
protected byte[] toBytes(String s, byte[] b, int off, boolean bigEndian)
protected byte[] toBytes(int i,
byte[] b,
int off,
boolean bigEndian)
protected byte[] toBytes(float f,
byte[] b,
int off,
boolean bigEndian)
protected byte[] toBytes(double d,
byte[] b,
int off,
boolean bigEndian)
public byte[] toBytes(Object val, SpecificCharacterSet cs)
public Object toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs)
public int toInt(Object val, boolean bigEndian, int valueIndex, int defVal)
public int[] toInts(Object val, boolean bigEndian)
public float toFloat(Object val, boolean bigEndian, int valueIndex, float defVal)
public float[] toFloats(Object val, boolean bigEndian)
public double toDouble(Object val, boolean bigEndian, int valueIndex, double defVal)
public double[] toDoubles(Object val, boolean bigEndian)
public Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
public Date[] toDate(Object val, TimeZone tz, boolean ceil, DatePrecision precisions)
public Object toValue(int[] is, boolean bigEndian)
public Object toValue(float[] fs, boolean bigEndian)
public Object toValue(double[] ds, boolean bigEndian)
public Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
Copyright © 2020. All rights reserved.