org.idevlab.rjc.util
Class KeyUtil

java.lang.Object
  extended by org.idevlab.rjc.util.KeyUtil

public class KeyUtil
extends Object

Author:
Evgeny Dolgov

Method Summary
static byte[] getKeyBytes(String k)
          Get the bytes for a key.
static String toKey(Object... blocks)
          Creates a key from the given blocks using the default separator character (':').
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getKeyBytes

public static byte[] getKeyBytes(String k)
Get the bytes for a key.

Parameters:
k - the key
Returns:
the bytes

toKey

public static String toKey(Object... blocks)
Creates a key from the given blocks using the default separator character (':').

Parameters:
blocks - the key's blocks to concatenate
Returns:
the resulting key


Copyright © 2011. All Rights Reserved.