com.gcapmedia.dab.epg.binary
Class BitParser
java.lang.Object
com.gcapmedia.dab.epg.binary.BitParser
public class BitParser
- extends java.lang.Object
Constructor Summary |
BitParser(byte[] bytes)
Create a new bithelper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BitParser
public BitParser(byte[] bytes)
- Create a new bithelper
- Parameters:
size
-
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.