com.rabbitmq.client.impl
Class LongStringHelper

java.lang.Object
  extended by com.rabbitmq.client.impl.LongStringHelper

public class LongStringHelper
extends java.lang.Object

Utility for working with LongStrings.


Constructor Summary
LongStringHelper()
           
 
Method Summary
static LongString asLongString(byte[] bytes)
          Converts a binary block to a LongString.
static LongString asLongString(java.lang.String string)
          Converts a String to a LongString using UTF-8 encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongStringHelper

public LongStringHelper()
Method Detail

asLongString

public static LongString asLongString(java.lang.String string)
Converts a String to a LongString using UTF-8 encoding.

Parameters:
string - the string to wrap
Returns:
a LongString wrapping it

asLongString

public static LongString asLongString(byte[] bytes)
Converts a binary block to a LongString.

Parameters:
bytes - the data to wrap
Returns:
a LongString wrapping it