Example usage for org.apache.cassandra.utils ByteBufferUtil bytes

List of usage examples for org.apache.cassandra.utils ByteBufferUtil bytes

Introduction

In this page you can find the example usage for org.apache.cassandra.utils ByteBufferUtil bytes.

Prototype

public static ByteBuffer bytes(String s, Charset charset) 

Source Link

Document

Encode a String in a ByteBuffer using the provided charset.

Usage

From source file:com.canonical.dpkgversiontype.DpkgVersionType.java

License:Apache License

public ByteBuffer decompose(String value) {
    return ByteBufferUtil.bytes(value, Charsets.US_ASCII);
}