Package gov.nih.mipav.model.file
Enum FileSVS.Type
- java.lang.Object
-
- java.lang.Enum<FileSVS.Type>
-
- gov.nih.mipav.model.file.FileSVS.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileSVS.Type>
- Enclosing class:
- FileSVS
public static enum FileSVS.Type extends java.lang.Enum<FileSVS.Type>
Tiff Types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCII
7 bit ASCIIBYTE
8 bit unsignedDOUBLE
double precision 8 byte IEEE formatFLOAT
single precision 4 byte IEEE formatIFD
The IFD type is identical to LONG, except that it is only used to point to other valid IFDsLONG
32 bit unsigned, 4 bytes like CRATIONAL
2 longs 1st numeratorSBYTE
8 bit signedSHORT
16 bit unsignedSLONG
32 bit signed, again only 4 bytesSRATIONAL
signed rational with two longs, 1st numeratorSSHORT
16 bit signedUNDEFINED
8 bit undefined
-
Field Summary
Fields Modifier and Type Field Description private int
v6Num
Number of type as specified by TIFF 6 format
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(int v6Num)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSVS.Type
getTypeFromNum(int v6Num)
int
getv6Num()
static FileSVS.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileSVS.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final FileSVS.Type BYTE
8 bit unsigned
-
ASCII
public static final FileSVS.Type ASCII
7 bit ASCII
-
SHORT
public static final FileSVS.Type SHORT
16 bit unsigned
-
LONG
public static final FileSVS.Type LONG
32 bit unsigned, 4 bytes like C
-
RATIONAL
public static final FileSVS.Type RATIONAL
2 longs 1st numerator
-
SBYTE
public static final FileSVS.Type SBYTE
8 bit signed
-
UNDEFINED
public static final FileSVS.Type UNDEFINED
8 bit undefined
-
SSHORT
public static final FileSVS.Type SSHORT
16 bit signed
-
SLONG
public static final FileSVS.Type SLONG
32 bit signed, again only 4 bytes
-
SRATIONAL
public static final FileSVS.Type SRATIONAL
signed rational with two longs, 1st numerator
-
FLOAT
public static final FileSVS.Type FLOAT
single precision 4 byte IEEE format
-
DOUBLE
public static final FileSVS.Type DOUBLE
double precision 8 byte IEEE format
-
IFD
public static final FileSVS.Type IFD
The IFD type is identical to LONG, except that it is only used to point to other valid IFDs
-
-
Method Detail
-
values
public static FileSVS.Type[] 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 (FileSVS.Type c : FileSVS.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileSVS.Type 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
-
getTypeFromNum
public static FileSVS.Type getTypeFromNum(int v6Num)
-
getv6Num
public int getv6Num()
-
-