net.ranides.assira.text
Class StringEncoder

java.lang.Object
  extended by net.ranides.assira.text.StringEncoder

public final class StringEncoder
extends Object

Author:
ranides

Method Summary
static String bytesToHex(byte[] raw)
           
static String bytesToHex(byte[] raw, String separator)
           
static String bytesToHex(ByteBuffer buffer)
           
static String bytesToHex(Collection<Byte> values, String charset)
          Deprecated. 
static byte[] hexToBytes(char[] hex)
           
static byte[] hexToBytes(char[] hex, byte[] _prefix, byte[] _suffix)
           
static byte[] hexToBytes(String hex)
           
static byte[] hexToBytes(String hex, byte[] prefix, byte[] postfix)
           
static String xor(String value, int key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bytesToHex

public static String bytesToHex(byte[] raw,
                                String separator)

bytesToHex

public static String bytesToHex(byte[] raw)

bytesToHex

public static String bytesToHex(ByteBuffer buffer)

bytesToHex

@Deprecated
public static String bytesToHex(Collection<Byte> values,
                                           String charset)
Deprecated. 


hexToBytes

public static byte[] hexToBytes(char[] hex)

hexToBytes

public static byte[] hexToBytes(char[] hex,
                                byte[] _prefix,
                                byte[] _suffix)

hexToBytes

public static byte[] hexToBytes(String hex)

hexToBytes

public static byte[] hexToBytes(String hex,
                                byte[] prefix,
                                byte[] postfix)

xor

public static String xor(String value,
                         int key)


Copyright © 2013. All Rights Reserved.