com.gcapmedia.dab.epg.binary
Class BitParser

java.lang.Object
  extended by com.gcapmedia.dab.epg.binary.BitParser

public class BitParser
extends java.lang.Object


Constructor Summary
BitParser(byte[] bytes)
          Create a new bithelper
 
Method Summary
 boolean getBoolean(int index)
           
 byte getByte(int index)
           
 byte[] getByteArray(int index, int length)
           
 int getInt(int index, int length)
           
 long getLong(int index, int length)
           
static byte[] parseByteArray(java.lang.String hex)
           
 int size()
          Returns the size of the construct
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BitParser

public BitParser(byte[] bytes)
Create a new bithelper

Parameters:
size -
Method Detail

size

public int size()
Returns the size of the construct

Returns:
the size of the construct

getInt

public int getInt(int index,
                  int length)

getLong

public long getLong(int index,
                    int length)

getBoolean

public boolean getBoolean(int index)

getByte

public byte getByte(int index)

getByteArray

public byte[] getByteArray(int index,
                           int length)

parseByteArray

public static byte[] parseByteArray(java.lang.String hex)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.