com.rabbitmq.client.LongString |
An object providing access to a LongString. This might be implemented to read directly from connection socket, depending on the size of the content to be read - long strings may contain up to 4Gb of content.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | MAX_LENGTH |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the content as a byte array.
| |||||||||||
Get the content stream.
| |||||||||||
Get the content as a byte array. This need not be a copy. Updates to the
returned array may change the value of the LongString
.
Repeated calls to this function may return the same array.
This function will fail if this.length() > Integer.MAX_VALUE
,
throwing an IllegalStateException.
LongString
Get the content stream. Repeated calls to this function return the same stream, which may not support rewind.
LongString
IOException | if an error is encountered |
---|