|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EndianType>
com.j256.simplemagic.endian.EndianType
public enum EndianType
Types of endian supported by the system.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
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 EndianType BIG
public static final EndianType LITTLE
public static final EndianType MIDDLE
public static final EndianType NATIVE
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic EndianConverter getConverter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |