public enum ByteOrder extends Enum<ByteOrder>
ByteBuffer
.Enum Constant and Description |
---|
NDR
NDR or little endian byte order.
|
XDR
XDR or big endian byte order
|
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the byte order as a byte: 0 for XDR (big endian), 1 for NDR (little endian).
|
ByteOrder |
getByteOrder()
Returns the corresponding
java.nio.ByteOrder |
static ByteOrder |
valueOf(byte orderByte)
Returns the
ByteOrder corresponding to the specified orderByte. |
static ByteOrder |
valueOf(ByteOrder byteOrder)
Returns the
ByteOrder corresponding to the specified |
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 XDR
public static final ByteOrder NDR
public static ByteOrder[] values()
for (ByteOrder c : ByteOrder.values()) System.out.println(c);
public static ByteOrder 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 static ByteOrder valueOf(byte orderByte)
ByteOrder corresponding to the specified orderByte.
orderByte
- (0 or 1)ByteOrder
, resp. XDR
or NDR
.public ByteOrder getByteOrder()
java.nio.ByteOrder
public byte byteValue()
Copyright © 2015 geolatte.org. All rights reserved.