org.apache.jackrabbit.mk.util
Class StringUtils

java.lang.Object
  extended by org.apache.jackrabbit.mk.util.StringUtils

public class StringUtils
extends Object

Some string utility methods.


Constructor Summary
StringUtils()
           
 
Method Summary
static String convertBytesToHex(byte[] value)
          Convert a byte array to a hex encoded string.
static byte[] convertHexToBytes(String s)
          Convert a hex encoded string to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtils

public StringUtils()
Method Detail

convertBytesToHex

public static String convertBytesToHex(byte[] value)
Convert a byte array to a hex encoded string.

Parameters:
value - the byte array
Returns:
the hex encoded string

convertHexToBytes

public static byte[] convertHexToBytes(String s)
Convert a hex encoded string to a byte array.

Parameters:
s - the hex encoded string
Returns:
the byte array


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.