Documentation of 'org.apache.derby.client.am.SignedBinary' Java class
SignedBinary
org.apache.derby.client.am

Class SignedBinary



  • public class SignedBinary
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int BIG_ENDIAN
      Unix byte-order for signed binary representations.
      static int LITTLE_ENDIAN
      Intel 80/86 reversed byte-order for signed binary representations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static int getInt(byte[] buffer, int offset)
      Build a Java int from a 4-byte signed binary representation.
      static long getLong(byte[] buffer, int offset)
      Build a Java long from an 8-byte signed binary representation.
      static short getShort(byte[] buffer, int offset)
      Build a Java short from a 2-byte signed binary representation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BIG_ENDIAN

        public static final int BIG_ENDIAN
        Unix byte-order for signed binary representations.
        See Also:
        Constant Field Values
      • LITTLE_ENDIAN

        public static final int LITTLE_ENDIAN
        Intel 80/86 reversed byte-order for signed binary representations.
        See Also:
        Constant Field Values
    • Method Detail

      • getShort

        public static short getShort(byte[] buffer,
                                     int offset)
        Build a Java short from a 2-byte signed binary representation.
        Throws:
        java.lang.IllegalArgumentException - if the specified byte order is not recognized.
      • getInt

        public static final int getInt(byte[] buffer,
                                       int offset)
        Build a Java int from a 4-byte signed binary representation.
        Throws:
        java.lang.IllegalArgumentException - if the specified byte order is not recognized.
      • getLong

        public static final long getLong(byte[] buffer,
                                         int offset)
        Build a Java long from an 8-byte signed binary representation.
        Throws:
        java.lang.IllegalArgumentException - if the specified byte order is not recognized.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.