Package org.cakelab.blender.io
Enum FileHeader.Endianess
- java.lang.Object
-
- java.lang.Enum<FileHeader.Endianess>
-
- org.cakelab.blender.io.FileHeader.Endianess
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FileHeader.Endianess>
- Enclosing class:
- FileHeader
public static enum FileHeader.Endianess extends java.lang.Enum<FileHeader.Endianess>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIG_ENDIAN
LITTLE_ENDIAN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileHeader.Endianess
decode(int code)
static FileHeader.Endianess
from(java.nio.ByteOrder byteOrder)
static FileHeader.Endianess
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FileHeader.Endianess[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LITTLE_ENDIAN
public static final FileHeader.Endianess LITTLE_ENDIAN
-
BIG_ENDIAN
public static final FileHeader.Endianess BIG_ENDIAN
-
-
Method Detail
-
values
public static FileHeader.Endianess[] 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 (FileHeader.Endianess c : FileHeader.Endianess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileHeader.Endianess 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
-
decode
public static FileHeader.Endianess decode(int code)
-
from
public static FileHeader.Endianess from(java.nio.ByteOrder byteOrder)
-
-