|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DataType> org.deegree.coverage.raster.data.info.DataType
public enum DataType
Enumeration for all supported data types.
Enum Constant Summary | |
---|---|
BYTE
|
|
DOUBLE
|
|
FLOAT
|
|
INT
|
|
SHORT
|
|
UNDEFINED
|
|
USHORT
|
Method Summary | |
---|---|
static DataType |
fromDataBufferType(int type)
Convert from DataBuffer -Types to DataType s. |
static DataType |
fromString(String type)
Convert from a string to DataType s. |
int |
getSize()
|
static int |
toDataBufferType(DataType type)
Convert from DataType s to DataBuffer -Types. |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DataType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DataType BYTE
public static final DataType INT
public static final DataType USHORT
public static final DataType SHORT
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType UNDEFINED
Method Detail |
---|
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic final int getSize()
public static DataType fromString(String type)
DataType
s.
type
- The string representation of the Type (eg. 'short', etc.)
UNDEFINED
if not mappable;public static DataType fromDataBufferType(int type)
DataBuffer
-Types to DataType
s.
type
- The DataBuffer
-Type (eg. TYPE_BYTE, etc.)
public static int toDataBufferType(DataType type)
DataType
s to DataBuffer
-Types.
type
- The DataType.
DataBuffer
-Type (eg. TYPE_BYTE, etc.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |