| Enum Constant and Description |
|---|
NDR
NDR or little endian byte order.
|
XDR
XDR or big endian byte order
|
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteOrder |
order |
private byte |
orderByte |
| 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).
|
java.nio.ByteOrder |
getByteOrder()
Returns the corresponding
java.nio.ByteOrder |
static ByteOrder |
valueOf(byte orderByte)
Returns the
ByteOrder corresponding to the specified orderByte. |
static ByteOrder |
valueOf(java.nio.ByteOrder byteOrder)
Returns the
ByteOrder corresponding to the specified |
static ByteOrder |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - 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 java.nio.ByteOrder getByteOrder()
java.nio.ByteOrderjava.nio.ByteOrderpublic byte byteValue()
public static ByteOrder valueOf(java.nio.ByteOrder byteOrder)
ByteOrder corresponding to the specified ByteOrder.byteOrder - the byteOrderByteOrder, resp. XDR or NDR.