ParsingFramework.MicroOperations
Class BinaryInteger
java.lang.Object
  
ParsingFramework.MicroOperations.BinaryInteger
public class BinaryInteger
- extends java.lang.Object
 
Micro Parser for Parsing and Composing Integers from/to binary
 data.
- Author:
 
  - Paul Grace
 
 
| 
Method Summary | 
static int | 
inInteger(java.util.BitSet data)
 
          Covert a bit array to a Java int value | 
static int | 
inInteger(byte[] bytes)
 
          Covert a byte array to a Java int value | 
static long | 
inLong(byte[] bytes)
 
            | 
 java.util.BitSet | 
outInteger(java.lang.Integer Value,
           int Size)
 
            | 
 java.util.BitSet | 
outInteger(java.lang.String Value,
           int Size)
 
            | 
 java.util.BitSet | 
outLong(java.lang.Long Value,
        int Size)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
BinaryInteger
public BinaryInteger(IParseOperations parent)
inInteger
public static int inInteger(java.util.BitSet data)
- Covert a bit array to a Java int value
- Parameters:
 data - The array of bits
- Returns:
 - a Java int
 
 
 
inInteger
public static int inInteger(byte[] bytes)
- Covert a byte array to a Java int value
- Parameters:
 bytes - The array of bytes
- Returns:
 - a Java int
 
 
 
inLong
public static long inLong(byte[] bytes)
 
outInteger
public java.util.BitSet outInteger(java.lang.Integer Value,
                                   int Size)
- Parameters:
 Value - Size - 
- Returns:
 
 
outLong
public java.util.BitSet outLong(java.lang.Long Value,
                                int Size)
 
outInteger
public java.util.BitSet outInteger(java.lang.String Value,
                                   int Size)