Package gov.nih.mipav.model.file
Enum FileTiff.Type
- java.lang.Object
-
- java.lang.Enum<FileTiff.Type>
-
- gov.nih.mipav.model.file.FileTiff.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileTiff.Type>
- Enclosing class:
- FileTiff
public static enum FileTiff.Type extends java.lang.Enum<FileTiff.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 FileTiff.Type
getTypeFromNum(int v6Num)
int
getv6Num()
static FileTiff.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileTiff.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 FileTiff.Type BYTE
8 bit unsigned
-
ASCII
public static final FileTiff.Type ASCII
7 bit ASCII
-
SHORT
public static final FileTiff.Type SHORT
16 bit unsigned
-
LONG
public static final FileTiff.Type LONG
32 bit unsigned, 4 bytes like C
-
RATIONAL
public static final FileTiff.Type RATIONAL
2 longs 1st numerator
-
SBYTE
public static final FileTiff.Type SBYTE
8 bit signed
-
UNDEFINED
public static final FileTiff.Type UNDEFINED
8 bit undefined
-
SSHORT
public static final FileTiff.Type SSHORT
16 bit signed
-
SLONG
public static final FileTiff.Type SLONG
32 bit signed, again only 4 bytes
-
SRATIONAL
public static final FileTiff.Type SRATIONAL
signed rational with two longs, 1st numerator
-
FLOAT
public static final FileTiff.Type FLOAT
single precision 4 byte IEEE format
-
DOUBLE
public static final FileTiff.Type DOUBLE
double precision 8 byte IEEE format
-
IFD
public static final FileTiff.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 FileTiff.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 (FileTiff.Type c : FileTiff.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 FileTiff.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 FileTiff.Type getTypeFromNum(int v6Num)
-
getv6Num
public int getv6Num()
-
-