EXIficient

com.siemens.ct.exi.util
Class MethodsBag

java.lang.Object
  extended by com.siemens.ct.exi.util.MethodsBag

public class MethodsBag
extends java.lang.Object

TODO Description

Version:
0.4.20081010
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Constructor Summary
MethodsBag()
           
 
Method Summary
static int getCodingLength(int characteristics)
           
static int getStringSize(int i)
           
static int getStringSize(long l)
           
static char[] itos(java.math.BigInteger bi)
           
static char[] itos(int i)
           
static void itos(int i, int leastExclIndex, char[] buf)
           
static char[] itos(long l)
           
static void itos(long l, int leastExclIndex, char[] buf)
           
static char[] itosReverse(java.math.BigInteger bi)
           
static char[] itosReverse(int i)
           
static int itosReverse(int i, int firstIndex, char[] buf)
           
static char[] itosReverse(long l)
           
static int numberOf7BitBlocksToRepresent(int n)
          Returns the least number of 7 bit-blocks that is needed to represent the int n.
static int numberOf7BitBlocksToRepresent(long l)
          Returns the least number of 7 bit-blocks that is needed to represent the long l.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodsBag

public MethodsBag()
Method Detail

numberOf7BitBlocksToRepresent

public static int numberOf7BitBlocksToRepresent(int n)
Returns the least number of 7 bit-blocks that is needed to represent the int n. Returns 1 if n is 0.

Parameters:
n - integer value

numberOf7BitBlocksToRepresent

public static int numberOf7BitBlocksToRepresent(long l)
Returns the least number of 7 bit-blocks that is needed to represent the long l. Returns 1 if l is 0.

Parameters:
l - long value

getCodingLength

public static final int getCodingLength(int characteristics)

getStringSize

public static final int getStringSize(int i)

getStringSize

public static final int getStringSize(long l)

itos

public static char[] itos(int i)

itos

public static void itos(int i,
                        int leastExclIndex,
                        char[] buf)

itos

public static char[] itos(long l)

itos

public static void itos(long l,
                        int leastExclIndex,
                        char[] buf)

itos

public static char[] itos(java.math.BigInteger bi)

itosReverse

public static char[] itosReverse(int i)

itosReverse

public static int itosReverse(int i,
                              int firstIndex,
                              char[] buf)

itosReverse

public static char[] itosReverse(long l)

itosReverse

public static char[] itosReverse(java.math.BigInteger bi)

EXIficient