public final class

AsciiSerializer

extends AbstractSerializer<T>
java.lang.Object
   ↳ com.netflix.astyanax.serializers.AbstractSerializer<T>
     ↳ com.netflix.astyanax.serializers.AsciiSerializer

Class Overview

Almost identical to StringSerializer except we use the US-ASCII character set code

Summary

Public Constructors
AsciiSerializer()
Public Methods
String fromByteBuffer(ByteBuffer byteBuffer)
Extract an object of type T from the bytes.
ByteBuffer fromString(String str)
Create a ByteBuffer by first parsing the type out of a string
static AsciiSerializer get()
ComparatorType getComparatorType()
String getString(ByteBuffer byteBuffer)
ByteBuffer toByteBuffer(String obj)
Extract bytes from the obj of type T
[Expand]
Inherited Methods
From class com.netflix.astyanax.serializers.AbstractSerializer
From class java.lang.Object
From interface com.netflix.astyanax.Serializer

Public Constructors

public AsciiSerializer ()

Public Methods

public String fromByteBuffer (ByteBuffer byteBuffer)

Extract an object of type T from the bytes.

public ByteBuffer fromString (String str)

Create a ByteBuffer by first parsing the type out of a string

public static AsciiSerializer get ()

public ComparatorType getComparatorType ()

public String getString (ByteBuffer byteBuffer)

public ByteBuffer toByteBuffer (String obj)

Extract bytes from the obj of type T