org.apache.avro.util
Class Utf8

java.lang.Object
  extended by org.apache.avro.util.Utf8
All Implemented Interfaces:
Comparable<Utf8>

@Stringable
public class Utf8
extends Object
implements Comparable<Utf8>

A Utf8 string.


Constructor Summary
Utf8()
           
Utf8(byte[] bytes)
           
Utf8(String string)
           
 
Method Summary
 int compareTo(Utf8 that)
           
 boolean equals(Object o)
           
 byte[] getBytes()
           
 int getLength()
           
 int hashCode()
           
 Utf8 setLength(int newLength)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Utf8

public Utf8()

Utf8

public Utf8(String string)

Utf8

public Utf8(byte[] bytes)
Method Detail

getBytes

public byte[] getBytes()

getLength

public int getLength()

setLength

public Utf8 setLength(int newLength)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Utf8 that)
Specified by:
compareTo in interface Comparable<Utf8>


Copyright © 2010 The Apache Software Foundation