org.planx.util
Class Converter

java.lang.Object
  extended by org.planx.util.Converter

public class Converter
extends Object

Author:
Kasper Bøgebjerg, Henning Niss, Thomas Ambus

Constructor Summary
Converter()
           
 
Method Summary
static int bytes2int(byte[] ab, int i)
           
static byte[] getBytes(String str)
           
static byte[] getBytes(String str, String enc)
           
static void int2bytebuf(int i, int off, byte[] ab)
           
static byte[] int2bytes(int i)
           
static String toHex(byte b)
           
static String toHex(byte[] bs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

bytes2int

public static int bytes2int(byte[] ab,
                            int i)

int2bytes

public static byte[] int2bytes(int i)

int2bytebuf

public static void int2bytebuf(int i,
                               int off,
                               byte[] ab)

toHex

public static String toHex(byte b)

toHex

public static String toHex(byte[] bs)

getBytes

public static byte[] getBytes(String str)

getBytes

public static byte[] getBytes(String str,
                              String enc)


Copyright © 2010. All Rights Reserved.