TranscoderUtils Class Reference

List of all members.

Public Member Functions

boolean decodeBoolean (byte[] in)
byte decodeByte (byte[] in)
int decodeInt (byte[] in)
long decodeLong (byte[] b)
byte[] encodeBoolean (boolean b)
byte[] encodeByte (byte in)
byte[] encodeInt (int in)
byte[] encodeLong (long l)
byte[] encodeNum (long l, int maxBytes)
 TranscoderUtils (boolean pack)

Private Attributes

final boolean packZeros


Detailed Description

Utility class for transcoding Java types.

Constructor & Destructor Documentation

TranscoderUtils ( boolean  pack  ) 

Get an instance of TranscoderUtils.

Parameters:
pack if true, remove all zero bytes from the MSB of the packed num


Member Function Documentation

boolean decodeBoolean ( byte[]  in  ) 

byte decodeByte ( byte[]  in  ) 

int decodeInt ( byte[]  in  ) 

long decodeLong ( byte[]  b  ) 

byte [] encodeBoolean ( boolean  b  ) 

byte [] encodeByte ( byte  in  ) 

byte [] encodeInt ( int  in  ) 

byte [] encodeLong ( long  l  ) 

byte [] encodeNum ( long  l,
int  maxBytes 
)


Member Data Documentation

final boolean packZeros [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:38 2012 for Project Wonder by  doxygen 1.5.8