Package com.rabbitmq.client.impl
Class LongStringHelper
- java.lang.Object
 - 
- com.rabbitmq.client.impl.LongStringHelper
 
 
- 
public class LongStringHelper extends Object
Utility for working withLongStrings. 
- 
- 
Constructor Summary
Constructors Constructor Description LongStringHelper() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LongStringasLongString(byte[] bytes)Converts a binary block to a LongString.static LongStringasLongString(String string)Converts a String to a LongString using UTF-8 encoding. 
 - 
 
- 
- 
Method Detail
- 
asLongString
public static LongString asLongString(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
 
 
 - 
 
 -