Package com.rabbitmq.client.impl
Class LongStringHelper
java.lang.Object
com.rabbitmq.client.impl.LongStringHelper
Utility for working with
LongString
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LongString
asLongString
(byte[] bytes) Converts a binary block to a LongString.static LongString
asLongString
(String string) Converts a String to a LongString using UTF-8 encoding.
-
Constructor Details
-
LongStringHelper
public LongStringHelper()
-
-
Method Details
-
asLongString
Converts a String to a LongString using UTF-8 encoding.- Parameters:
string
- the string to wrap- Returns:
- a LongString wrapping it
-
asLongString
Converts a binary block to a LongString.- Parameters:
bytes
- the data to wrap- Returns:
- a LongString wrapping it
-