public enum ByteOrder extends Enum<ByteOrder>
Enum Constant and Description |
---|
BIG_ENDIAN
Value indicating that the highest order byte of a bit word is stored
at the lowest byte address: the int 0x0A0B0C0D is stored in the byte
sequence 0x0A, 0x0B, 0x0C, 0x0D.
|
CROSS_ENDIAN
Value indicating a mixed endian mode:
the int 0x0A0B0C0D is stored in the byte sequence 0x0D, 0x0C, 0x0B, 0x0A,
and the long 0x0102030405060708 is stored in the sequence 0x05, 0x06,
0x07, 0x08, 0x01, 0x02, 0x03, 0x04.
|
LITTLE_ENDIAN
Value indicating that the lowest order byte of a word is stored
at the lowest byte address: the int 0x0A0B0C0D is stored in the byte
sequence 0x0D, 0x0C, 0x0B, 0x0A and the long 0x0102030405060708
is stored in the sequence 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01.
|
PDP_ENDIAN
Value indicating a mixed endian mode used by among others the PDP-11:
the int 0x0A0B0C0D is stored in the byte sequence 0x0B, 0x0A, 0x0D, 0x0C,
and the long 0x0102030405060708 is stored in the sequence 0x02, 0x01,
0x04, 0x03, 0x06, 0x05, 0x08, 0x07.
|
Modifier and Type | Method and Description |
---|---|
static ByteOrder |
systemByteOrder()
Obtains the byte order of the byte order of the system.
|
byte |
value()
Determines the value of this enum.
|
static ByteOrder |
value(int value)
Converts an int into a policy type.
|
static ByteOrder |
value(String value)
Converts a string into a policy type.
|
static ByteOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteOrder BIG_ENDIAN
public static final ByteOrder LITTLE_ENDIAN
public static final ByteOrder PDP_ENDIAN
public static final ByteOrder CROSS_ENDIAN
public static ByteOrder[] values()
for (ByteOrder c : ByteOrder.values()) System.out.println(c);
public static ByteOrder valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public byte value()
public static ByteOrder value(String value)
value
- is the string to convert.public static ByteOrder value(int value)
value
- the int to convert.public static ByteOrder systemByteOrder()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.