ParsingFramework.MicroOperations
Class BinaryInteger

java.lang.Object
  extended by ParsingFramework.MicroOperations.BinaryInteger

public class BinaryInteger
extends java.lang.Object

Micro Parser for Parsing and Composing Integers from/to binary data.

Author:
Paul Grace

Constructor Summary
BinaryInteger(IParseOperations parent)
           
 
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
 

Constructor Detail

BinaryInteger

public BinaryInteger(IParseOperations parent)
Method Detail

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)