maspack.fileutil
Class HexCoder

java.lang.Object
  extended by maspack.fileutil.HexCoder

public class HexCoder
extends java.lang.Object


Constructor Summary
HexCoder()
           
 
Method Summary
static byte[] decode(java.lang.String str)
          Converts a Hex String to a byte array
static java.lang.String encode(byte[] byteArray)
           
static boolean isCoded(byte[] byteArray)
          True if array looks to be hex coded
static boolean isCoded(java.lang.String str)
          True if string looks to be hex coded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexCoder

public HexCoder()
Method Detail

encode

public static java.lang.String encode(byte[] byteArray)

decode

public static byte[] decode(java.lang.String str)
Converts a Hex String to a byte array

Parameters:
str - hex string to convert
Returns:
byte array

isCoded

public static boolean isCoded(byte[] byteArray)
True if array looks to be hex coded

Parameters:
byteArray - array to test
Returns:
true if appears hex code

isCoded

public static boolean isCoded(java.lang.String str)
True if string looks to be hex coded

Parameters:
str - string to test
Returns:
true if string looks to be hex coded