Package gov.nih.mipav.model.file
Enum FileDicomTagInfo.NumType
- java.lang.Object
-
- java.lang.Enum<FileDicomTagInfo.NumType>
-
- gov.nih.mipav.model.file.FileDicomTagInfo.NumType
-
- All Implemented Interfaces:
DicomType
,java.io.Serializable
,java.lang.Comparable<FileDicomTagInfo.NumType>
- Enclosing class:
- FileDicomTagInfo
public static enum FileDicomTagInfo.NumType extends java.lang.Enum<FileDicomTagInfo.NumType> implements DicomType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOUBLE
An IEEE754:1985 64-bit double is stored in the tag's value.FLOAT
An IEEE754:1985 32-bit float is stored in the tag's value.LONG
A signed or unsigned integer in 2's complement is stored in the tag's value.SHORT
A signed or unsigned short in 2's complement is stored in the tag's value.VERY_LONG
A signed or unsigned integer in 2's complement is stored in the tag's value.
-
Field Summary
Fields Modifier and Type Field Description private int
numBytes
-
Constructor Summary
Constructors Modifier Constructor Description private
NumType(java.lang.String name, int numBytes, FileDicomTagInfo.VR... vr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumBytes()
java.lang.Object[]
read(byte[] data)
static FileDicomTagInfo.NumType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileDicomTagInfo.NumType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.byte[]
write(java.lang.Object obj)
-
-
-
Enum Constant Detail
-
SHORT
public static final FileDicomTagInfo.NumType SHORT
A signed or unsigned short in 2's complement is stored in the tag's value.
-
LONG
public static final FileDicomTagInfo.NumType LONG
A signed or unsigned integer in 2's complement is stored in the tag's value.
-
VERY_LONG
public static final FileDicomTagInfo.NumType VERY_LONG
A signed or unsigned integer in 2's complement is stored in the tag's value.
-
FLOAT
public static final FileDicomTagInfo.NumType FLOAT
An IEEE754:1985 32-bit float is stored in the tag's value.
-
DOUBLE
public static final FileDicomTagInfo.NumType DOUBLE
An IEEE754:1985 64-bit double is stored in the tag's value.
-
-
Constructor Detail
-
NumType
private NumType(java.lang.String name, int numBytes, FileDicomTagInfo.VR... vr)
-
-
Method Detail
-
values
public static FileDicomTagInfo.NumType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileDicomTagInfo.NumType c : FileDicomTagInfo.NumType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileDicomTagInfo.NumType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNumBytes
public int getNumBytes()
-
-