Class BinaryOperation

java.lang.Object
org.jpedal.jbig2.util.BinaryOperation

public class BinaryOperation extends Object

BinaryOperation class.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Constant INTMASK=0xff
    static final int
    Constant LEFT_SHIFT=0
    static final long
    Constant LONGMASK=0xffffffffl
    static final int
    Constant RIGHT_SHIFT=1
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    bit32ShiftL(long number, int shift)
    bit32ShiftL.
    static long
    bit32ShiftR(long number, int shift)
    bit32ShiftR.
    static int
    bit8Shift(int number, int shift, int direction)
    bit8Shift.
    static int
    getInt16(short[] number)
    getInt16.
    static int
    getInt32(byte[] number)
    getInt32.
    static int
    getInt32(short[] number)
    getInt32.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BinaryOperation

      public BinaryOperation()
  • Method Details

    • getInt32

      public static int getInt32(short[] number)

      getInt32.

      Parameters:
      number - an array of
      invalid reference
      short
      objects.
      Returns:
      a Integer object.
    • getInt16

      public static int getInt16(short[] number)

      getInt16.

      Parameters:
      number - an array of
      invalid reference
      short
      objects.
      Returns:
      a Integer object.
    • bit32ShiftL

      public static long bit32ShiftL(long number, int shift)

      bit32ShiftL.

      Parameters:
      number - a long.
      shift - a Integer object.
      Returns:
      a long.
    • bit32ShiftR

      public static long bit32ShiftR(long number, int shift)

      bit32ShiftR.

      Parameters:
      number - a long.
      shift - a Integer object.
      Returns:
      a long.
    • bit8Shift

      public static int bit8Shift(int number, int shift, int direction)

      bit8Shift.

      Parameters:
      number - a Integer object.
      shift - a Integer object.
      direction - a Integer object.
      Returns:
      a Integer object.
    • getInt32

      public static int getInt32(byte[] number)

      getInt32.

      Parameters:
      number - an array of
      invalid reference
      byte
      objects.
      Returns:
      a Integer object.