org.scale7.cassandra.pelops
Class StringHelper

java.lang.Object
  extended by org.scale7.cassandra.pelops.StringHelper

Deprecated.

@Deprecated
public class StringHelper
extends Object


Constructor Summary
StringHelper()
          Deprecated.  
 
Method Summary
static List<byte[]> toByteArrayList(List<String> list)
          Deprecated. Use Bytes.transformUTF8ToList(java.util.Collection) instead.
static byte[] toBytes(String string)
          Deprecated. 
static String toUTF8(byte[] bytes)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringHelper

public StringHelper()
Deprecated. 
Method Detail

toBytes

@Deprecated
public static byte[] toBytes(String string)
Deprecated. 

Create an array of bytes that represents a String using UTF-8 encoding.

Parameters:
string - The String to convert
Returns:
The string as UTF-8 bytes

toUTF8

@Deprecated
public static String toUTF8(byte[] bytes)
Deprecated. 

Create a String from an array of UTF-8 bytes

Parameters:
bytes - The array of UTF-8 bytes
Returns:
The String object

toByteArrayList

@Deprecated
public static List<byte[]> toByteArrayList(List<String> list)
Deprecated. Use Bytes.transformUTF8ToList(java.util.Collection) instead.

Convert a list of strings to a list of byte arrays

Parameters:
list -
Returns:


Copyright © 2011. All Rights Reserved.