com.ibm.sensorevent.codex
Class HexBinary

java.lang.Object
  extended by com.ibm.sensorevent.codex.HexBinary

public class HexBinary
extends java.lang.Object

The HexBinary class converts data using the HexBinary algorithm. Specifically, use the HexBinary class to:


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
HexBinary()
           
 
Method Summary
static byte[] decode(java.lang.String s)
          Converts a String to a byte array
static java.lang.String encode(byte[] b)
          Converts a byte array to a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

HexBinary

public HexBinary()
Method Detail

decode

public static byte[] decode(java.lang.String s)
                     throws SensorEventException
Converts a String to a byte array

Parameters:
s - - the String to convert
Throws:
SensorEventException

encode

public static java.lang.String encode(byte[] b)
                               throws SensorEventException
Converts a byte array to a String

Parameters:
b - - the byte array to convert
Throws:
SensorEventException


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.