public class

LongStringHelper

extends Object
java.lang.Object
   ↳ com.rabbitmq.client.impl.LongStringHelper

Class Overview

Utility for working with LongStrings.

Summary

Public Constructors
LongStringHelper()
Public Methods
static 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LongStringHelper ()

Public Methods

public static LongString asLongString (byte[] bytes)

Converts a binary block to a LongString.

Parameters
bytes the data to wrap
Returns
  • a LongString wrapping it

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