org.deegree.commons.utils
Class ByteUtils

java.lang.Object
  extended by org.deegree.commons.utils.ByteUtils

public class ByteUtils
extends Object

ByteUtils

Version:
$Revision: 19730 $, $Date: 2009-09-23 16:23:21 +0200 (Wed, 23 Sep 2009) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
ByteUtils()
           
 
Method Summary
static byte[] decode(String str)
           
static String encode(byte[] bs)
           
static double readLEDouble(DataInput in)
           
static int readLEInt(DataInput in)
           
static long readLELong(DataInput in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteUtils

public ByteUtils()
Method Detail

readLEInt

public static int readLEInt(DataInput in)
                     throws IOException
Parameters:
in -
Returns:
the int
Throws:
IOException

readLELong

public static long readLELong(DataInput in)
                       throws IOException
Parameters:
in -
Returns:
the long
Throws:
IOException

readLEDouble

public static double readLEDouble(DataInput in)
                           throws IOException
Parameters:
in -
Returns:
the double
Throws:
IOException

decode

public static byte[] decode(String str)
Parameters:
str - a hex string with a sequence of byte values
Returns:
a byte array with the values

encode

public static String encode(byte[] bs)
Parameters:
bs -
Returns:
a hex string with a sequence of byte values


Copyright © 2011. All Rights Reserved.