org.apache.activemq.protobuf
Class UTF8Buffer

java.lang.Object
  extended by org.apache.activemq.protobuf.Buffer
      extended by org.apache.activemq.protobuf.UTF8Buffer
All Implemented Interfaces:
java.lang.Comparable<Buffer>

public final class UTF8Buffer
extends Buffer


Field Summary
 
Fields inherited from class org.apache.activemq.protobuf.Buffer
data, length, offset
 
Constructor Summary
UTF8Buffer(Buffer other)
           
UTF8Buffer(byte[] data)
           
UTF8Buffer(byte[] data, int offset, int length)
           
UTF8Buffer(java.lang.String input)
           
 
Method Summary
 UTF8Buffer compact()
           
 int compareTo(Buffer other)
           
static java.lang.String decode(Buffer buffer)
           
static byte[] encode(java.lang.String value)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.activemq.protobuf.Buffer
byteAt, contains, equals, getData, getLength, getOffset, indexOf, isEmpty, join, newInput, newOutput, slice, toByteArray, toStringUtf8
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UTF8Buffer

public UTF8Buffer(Buffer other)

UTF8Buffer

public UTF8Buffer(byte[] data,
                  int offset,
                  int length)

UTF8Buffer

public UTF8Buffer(byte[] data)

UTF8Buffer

public UTF8Buffer(java.lang.String input)
Method Detail

compact

public UTF8Buffer compact()
Overrides:
compact in class Buffer

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(Buffer other)
Specified by:
compareTo in interface java.lang.Comparable<Buffer>
Overrides:
compareTo in class Buffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Buffer

hashCode

public int hashCode()
Overrides:
hashCode in class Buffer

encode

public static byte[] encode(java.lang.String value)

decode

public static java.lang.String decode(Buffer buffer)


Copyright © 2012. All Rights Reserved.