public enum EndianType extends Enum<EndianType>
Enum Constant and Description |
---|
BIG
big endian, also called network byte order (motorola 68k)
|
LITTLE
little endian (x86)
|
MIDDLE
old PDP11 byte order
|
NATIVE
uses the byte order of the current system
|
Modifier and Type | Method and Description |
---|---|
EndianConverter |
getConverter()
Returns the converter associated with this endian-type.
|
static EndianType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndianType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndianType BIG
public static final EndianType LITTLE
public static final EndianType MIDDLE
public static final EndianType NATIVE
public static EndianType[] values()
for (EndianType c : EndianType.values()) System.out.println(c);
public static EndianType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic EndianConverter getConverter()
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.