src/java/org/apache/cassandra/tools/SSTableImport.java
/**
     * Convert a string to bytes (ByteBuffer) according to type
     * @param content string to convert
     * @param type type to use for conversion
     * @return byte buffer representation of the given string
     */
Convert a string to bytes (ByteBuffer) according to type
@param content string to convert
@param type type to use for conversion
@return byte buffer representation of the given string
Convert a string to bytes ( ByteBuffer ) according to type @param content string to convert @param type type to use for conversion @return byte buffer representation of the given string
private static ByteBuffer stringAsType(String content, AbstractType type)
    {
        try
        {
            return (type == BytesType.instance) ? hexToBytes(content) : type.fromString(content);
        }
        catch (MarshalException e)
        {
            throw new RuntimeException(e.getMessage());
        }
    }
private static ByteBuffer stringAsType ( String content , AbstractType type ) { try { return ( type == BytesType . instance ) ? hexToBytes ( content ) : type . fromString ( content ) ; } catch ( MarshalException e ) { throw new RuntimeException ( e . getMessage ( ) ) ; } }
Convert a string to bytes (ByteBuffer) according to type
 @param content string to convert
 @param type type to use for conversion
 @return byte buffer representation of the given string
Convert a string to bytes ( ByteBuffer ) according to type @param content string to convert @param type type to use for conversion @return byte buffer representation of the given string