public enum VR extends Enum<VR>
| Modifier and Type | Class and Description |
|---|---|
static class |
VR.Holder |
| Enum Constant and Description |
|---|
AE |
AS |
AT |
CS |
DA |
DS |
DT |
FD |
FL |
IS |
LO |
LT |
OB |
OD |
OF |
OL |
OW |
PN |
SH |
SL |
SQ |
SS |
ST |
TM |
UC |
UI |
UL |
UN |
UR |
US |
UT |
| Modifier and Type | Field and Description |
|---|---|
protected int |
code |
protected int |
headerLength |
protected boolean |
inlineBinary |
protected int |
paddingByte |
protected ValueType |
valueType |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
int |
headerLength() |
boolean |
isInlineBinary() |
boolean |
isIntType() |
boolean |
isStringType() |
boolean |
isTemporalType() |
int |
numEndianBytes() |
int |
paddingByte() |
boolean |
prompt(Object val,
boolean bigEndian,
SpecificCharacterSet cs,
int maxChars,
StringBuilder sb) |
byte[] |
toBytes(Object val,
SpecificCharacterSet cs) |
Date |
toDate(Object val,
TimeZone tz,
int valueIndex,
boolean ceil,
Date defVal,
DatePrecision precision) |
Date[] |
toDates(Object val,
TimeZone tz,
boolean ceil,
DatePrecision precisions) |
double |
toDouble(Object val,
boolean bigEndian,
int valueIndex,
double defVal) |
double[] |
toDoubles(Object val,
boolean bigEndian) |
float |
toFloat(Object val,
boolean bigEndian,
int valueIndex,
float defVal) |
float[] |
toFloats(Object val,
boolean bigEndian) |
byte[] |
toggleEndian(byte[] b,
boolean preserve) |
int |
toInt(Object val,
boolean bigEndian,
int valueIndex,
int defVal) |
int[] |
toInts(Object val,
boolean bigEndian) |
String |
toString(Object val,
boolean bigEndian,
int valueIndex,
String defVal) |
Object |
toStrings(Object val,
boolean bigEndian,
SpecificCharacterSet cs) |
Object |
toValue(Date[] ds,
TimeZone tz,
DatePrecision precision) |
boolean |
useSpecificCharacterSet() |
static VR |
valueOf(int code) |
static VR |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VR[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
vmOf(Object val) |
public static final VR AE
public static final VR AS
public static final VR AT
public static final VR CS
public static final VR DA
public static final VR DS
public static final VR DT
public static final VR FD
public static final VR FL
public static final VR IS
public static final VR LO
public static final VR LT
public static final VR OB
public static final VR OD
public static final VR OF
public static final VR OL
public static final VR OW
public static final VR PN
public static final VR SH
public static final VR SL
public static final VR SQ
public static final VR SS
public static final VR ST
public static final VR TM
public static final VR UC
public static final VR UI
public static final VR UL
public static final VR UN
public static final VR UR
public static final VR US
public static final VR UT
protected final int code
protected final int headerLength
protected final int paddingByte
protected final ValueType valueType
protected final boolean inlineBinary
public static VR[] values()
for (VR c : VR.values()) System.out.println(c);
public static VR 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 static VR valueOf(int code)
public int code()
public int headerLength()
public int paddingByte()
public boolean isTemporalType()
public boolean isStringType()
public boolean useSpecificCharacterSet()
public boolean isIntType()
public boolean isInlineBinary()
public int numEndianBytes()
public byte[] toggleEndian(byte[] b,
boolean preserve)
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[] toDates(Object val, TimeZone tz, boolean ceil, DatePrecision precisions)
public Object toValue(Date[] ds, TimeZone tz, DatePrecision precision)
public boolean prompt(Object val, boolean bigEndian, SpecificCharacterSet cs, int maxChars, StringBuilder sb)
public int vmOf(Object val)
Copyright © 2020. All rights reserved.