org.deegree.commons.utils
Class ByteUtils
java.lang.Object
org.deegree.commons.utils.ByteUtils
public class ByteUtils
- extends java.lang.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 $
Method Summary |
static byte[] |
decode(java.lang.String str)
|
static java.lang.String |
encode(byte[] bs)
|
static double |
readLEDouble(java.io.DataInput in)
|
static int |
readLEInt(java.io.DataInput in)
|
static long |
readLELong(java.io.DataInput in)
|
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(java.io.DataInput in)
throws java.io.IOException
- Parameters:
in
-
- Returns:
- the int
- Throws:
java.io.IOException
readLELong
public static long readLELong(java.io.DataInput in)
throws java.io.IOException
- Parameters:
in
-
- Returns:
- the long
- Throws:
java.io.IOException
readLEDouble
public static double readLEDouble(java.io.DataInput in)
throws java.io.IOException
- Parameters:
in
-
- Returns:
- the double
- Throws:
java.io.IOException
decode
public static byte[] decode(java.lang.String str)
- Parameters:
str
- a hex string with a sequence of byte values
- Returns:
- a byte array with the values
encode
public static java.lang.String encode(byte[] bs)
- Parameters:
bs
-
- Returns:
- a hex string with a sequence of byte values
Copyright © 2011. All Rights Reserved.