enum BinaryValueType extends Enum<BinaryValueType> implements ValueType
| Enum Constant and Description |
|---|
BYTE |
DOUBLE |
FLOAT |
INT |
SHORT |
TAG |
USHORT |
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
numBytes |
(package private) int |
numEndianBytes |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkLength(int len) |
boolean |
isIntValue() |
boolean |
isStringValue() |
boolean |
isTemporalType() |
int |
numEndianBytes() |
private boolean |
prompt(byte[] b,
boolean bigEndian,
int maxChars,
StringBuilder sb) |
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,
DatePrecisions 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 TAG
public static final BinaryValueType FLOAT
public static final BinaryValueType DOUBLE
final int numBytes
final int numEndianBytes
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 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(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)
private void checkLength(int len)
public Object toStrings(Object val, boolean bigEndian, SpecificCharacterSet cs)
public Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
public Date[] toDate(Object val, TimeZone tz, boolean ceil, DatePrecisions precisions)
public Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
private boolean prompt(byte[] b, boolean bigEndian, int maxChars, StringBuilder sb)
Copyright © 2017 dcm4che.org. All rights reserved.