Package org.jpedal.jbig2.util
Class BinaryOperation
java.lang.Object
org.jpedal.jbig2.util.BinaryOperation
BinaryOperation class.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
ConstantINTMASK=0xff
static final int
ConstantLEFT_SHIFT=0
static final long
ConstantLONGMASK=0xffffffffl
static final int
ConstantRIGHT_SHIFT=1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
LEFT_SHIFT
public static final int LEFT_SHIFTConstantLEFT_SHIFT=0
- See Also:
-
RIGHT_SHIFT
public static final int RIGHT_SHIFTConstantRIGHT_SHIFT=1
- See Also:
-
LONGMASK
public static final long LONGMASKConstantLONGMASK=0xffffffffl
- See Also:
-
INTMASK
public static final int INTMASKConstantINTMASK=0xff
- See Also:
-
-
Constructor Details
-
BinaryOperation
public BinaryOperation()
-
-
Method Details
-
getInt32
public static int getInt32(short[] number) getInt32.
- Parameters:
number
- an array ofinvalid reference
short
- Returns:
- a
Integer
object.
-
getInt16
public static int getInt16(short[] number) getInt16.
- Parameters:
number
- an array ofinvalid reference
short
- Returns:
- a
Integer
object.
-
bit32ShiftL
public static long bit32ShiftL(long number, int shift) bit32ShiftL.
- Parameters:
number
- a long.shift
- aInteger
object.- Returns:
- a long.
-
bit32ShiftR
public static long bit32ShiftR(long number, int shift) bit32ShiftR.
- Parameters:
number
- a long.shift
- aInteger
object.- Returns:
- a long.
-
bit8Shift
public static int bit8Shift(int number, int shift, int direction) bit8Shift.
-
getInt32
public static int getInt32(byte[] number) getInt32.
- Parameters:
number
- an array ofinvalid reference
byte
- Returns:
- a
Integer
object.
-