Enum ByteOrder

    • Enum Constant Detail

      • XDR

        public static final ByteOrder XDR
        XDR or big endian byte order
      • NDR

        public static final ByteOrder NDR
        NDR or little endian byte order.
    • Method Detail

      • values

        public static ByteOrder[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ByteOrder c : ByteOrder.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ByteOrder valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • valueOf

        public static ByteOrder valueOf​(byte orderByte)
        Returns the ByteOrder corresponding to the specified orderByte.
        Parameters:
        orderByte - (0 or 1)
        Returns:
        corresponding ByteOrder, resp. XDR or NDR.
      • byteValue

        public byte byteValue()
        Returns the byte order as a byte: 0 for XDR (big endian), 1 for NDR (little endian).
        Returns:
        byte 0 or 1
      • valueOf

        public static ByteOrder valueOf​(ByteOrder byteOrder)
        Returns the ByteOrder corresponding to the specified ByteOrder.
        Parameters:
        byteOrder - the byteOrder
        Returns:
        corresponding ByteOrder, resp. XDR or NDR.