org.deegree.commons.utils
Class ByteUtils
java.lang.Object
org.deegree.commons.utils.ByteUtils
public class ByteUtils
- extends Object
ByteUtils
- Version:
- $Revision: 19730 $, $Date: 2009-09-23 16:23:21 +0200 (Mi, 23 Sep 2009) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteUtils
public ByteUtils()
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>