org.jboss.messaging.utils
Class UTF8Util

java.lang.Object
  extended by org.jboss.messaging.utils.UTF8Util

public class UTF8Util
extends java.lang.Object

A UTF8Util This class will write UTFs directly to the ByteOutput (through the MessageBuffer interface)

Author:
Clebert Suconic Created Feb 20, 2009 1:37:18 PM

Constructor Summary
UTF8Util()
           
 
Method Summary
static int calculateUTFSize(java.lang.String str, org.jboss.messaging.utils.UTF8Util.StringUtilBuffer stringBuffer)
           
static void clearBuffer()
           
static java.lang.String readUTF(MessagingBuffer input)
           
static void saveUTF(MessagingBuffer out, java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTF8Util

public UTF8Util()
Method Detail

saveUTF

public static void saveUTF(MessagingBuffer out,
                           java.lang.String str)
                    throws java.io.IOException
Throws:
java.io.IOException

readUTF

public static java.lang.String readUTF(MessagingBuffer input)
                                throws java.io.IOException
Throws:
java.io.IOException

clearBuffer

public static void clearBuffer()

calculateUTFSize

public static int calculateUTFSize(java.lang.String str,
                                   org.jboss.messaging.utils.UTF8Util.StringUtilBuffer stringBuffer)


Copyright © 2006 JBoss Inc. All Rights Reserved.