PDF Clown
0.0.8

it.stefanochizzolini.clown.util
Class ConvertUtils

java.lang.Object
  extended by it.stefanochizzolini.clown.util.ConvertUtils

public class ConvertUtils
extends Object

Data convertion utility.

Remarks

This class is a specialized adaptation from the original Apache Commons Codec project, licensed under the Apache License, Version 2.0.

Since:
0.0.8
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
ConvertUtils()
           
 
Method Summary
static String byteArrayToHex(byte[] data)
           
static int byteArrayToInt(byte[] data)
           
static int byteArrayToInt(byte[] data, int index, ByteOrder byteOrder)
           
static int byteArrayToNumber(byte[] data, int index, int length, ByteOrder byteOrder)
           
static byte[] hexToByteArray(String data)
           
static byte[] intToByteArray(int data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertUtils

public ConvertUtils()
Method Detail

byteArrayToHex

public static String byteArrayToHex(byte[] data)

byteArrayToInt

public static int byteArrayToInt(byte[] data)

byteArrayToInt

public static int byteArrayToInt(byte[] data,
                                 int index,
                                 ByteOrder byteOrder)

byteArrayToNumber

public static int byteArrayToNumber(byte[] data,
                                    int index,
                                    int length,
                                    ByteOrder byteOrder)

hexToByteArray

public static byte[] hexToByteArray(String data)

intToByteArray

public static byte[] intToByteArray(int data)

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.