public enum VR extends Enum<VR>
Modifier and Type | Class and Description |
---|---|
static class |
VR.Holder |
Enum Constant and Description |
---|
AE
Application Entity
|
AS
Age String
|
AT
Attribute Tag
|
CS
Code String
|
DA
Date
|
DS
Decimal String
|
DT
Date Time
|
FD
Floating Point Double
|
FL
Floating Point Single
|
IS
Integer String
|
LO
Long String
|
LT
Long Text
|
OB
Other Byte String
|
OD
Other Double String
|
OF
Other Float String
|
OL
Other Long String
|
OW
Other Word String
|
PN
Person Name
|
SH
Short String
|
SL
Signed Long
|
SQ
Sequence of Items
|
SS
Signed Short
|
ST
Short Text
|
TM
Time
|
UC
Unlimited Characters
|
UI
Unique Identifier (UID)
|
UL
Unsigned Long
|
UN
Unknown
|
UR
Universal Resource Identifier or Universal Resource Locator (URI/URL)
|
US
Unsigned Short
|
UT
Unlimited Text
|
Modifier and Type | Field and Description |
---|---|
protected int |
code |
protected int |
headerLength |
protected boolean |
inlineBinary |
private static Logger |
LOG |
protected int |
paddingByte |
private static VR[] |
VALUE_OF |
protected ValueType |
valueType |
Modifier and Type | Method and Description |
---|---|
int |
code() |
int |
headerLength() |
private static int |
indexOf(int code) |
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,
DatePrecisions 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) |
(package private) Object |
toValue(byte[] b) |
Object |
toValue(Date[] ds,
TimeZone tz,
DatePrecision precision) |
(package private) Object |
toValue(double[] ds,
boolean bigEndian) |
(package private) Object |
toValue(float[] fs,
boolean bigEndian) |
(package private) Object |
toValue(int[] is,
boolean bigEndian) |
(package private) Object |
toValue(String[] ss,
boolean bigEndian) |
(package private) Object |
toValue(String s,
boolean bigEndian) |
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) |
protected final int code
protected final int headerLength
protected final int paddingByte
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 nullprivate static int indexOf(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 Date toDate(Object val, TimeZone tz, int valueIndex, boolean ceil, Date defVal, DatePrecision precision)
public Date[] toDates(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)
Copyright © 2017 dcm4che.org. All rights reserved.