| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | DecodeException(ByteBuffer
the byte buffer containing the (part of) the message that
could not be decoded. bb, String the reason for the failure. message, Throwable the cause of the error. cause)Constructor with the binary data that could not be decoded, and the reason why it failed to be, and the cause. |
| public | DecodeException(String
the string representing the (part of) the message that could not be decoded. encodedString, String the reason for the failure. message, Throwable the cause of the error. cause)Constructor with the text data that could not be decoded, and the reason why it failed to be, and the cause. |
| public | DecodeException(ByteBuffer
the byte buffer containing the (part of) the message that
could not be decoded. bb, String the reason for the failure. message)Constructs a DecodedException with the given ByteBuffer that cannot be decoded, and reason why. |
| public | DecodeException(String
the string representing the (part of) the message that
could not be decoded. encodedString, String the reason for the failure. message)Constructs a DecodedException with the given encoded string that cannot be decoded, and reason why. |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | Returns: the binary data not decoded ornull for text message failures.Return the ByteBuffer containing either the whole message, or the partial message, that
could not be decoded, or |
| public String | Returns: the text not decoded ornull for binary message failures.Return the encoded string that is either the whole message, or the partial
message that could not be decoded, or |
| bb | back to summary |
|---|---|
| private final ByteBuffer bb | |
| encodedString | back to summary |
|---|---|
| private final String encodedString | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DecodeException | back to summary |
|---|---|
| public DecodeException(ByteBuffer bb, String message, Throwable cause) Constructor with the binary data that could not be decoded, and the reason why it failed to be, and the cause. The buffer may represent the whole message, or the part of the message most relevant to the decoding error, depending whether the application is using one of the streaming methods or not.
| |
| DecodeException | back to summary |
|---|---|
| public DecodeException(String encodedString, String message, Throwable cause) Constructor with the text data that could not be decoded, and the reason why it failed to be, and the cause. The encoded string may represent the whole message, or the part of the message most relevant to the decoding error, depending whether the application is using one of the streaming methods or not. | |
| DecodeException | back to summary |
|---|---|
| public DecodeException(ByteBuffer bb, String message) Constructs a DecodedException with the given ByteBuffer that cannot be decoded, and reason why. The buffer may represent the whole message, or the part of the message most relevant to the decoding error, depending whether the application is using one of the streaming methods or not.
| |
| DecodeException | back to summary |
|---|---|
| public DecodeException(String encodedString, String message) Constructs a DecodedException with the given encoded string that cannot be decoded, and reason why. The encoded string may represent the whole message, or the part of the message most relevant to the decoding error, depending whether the application is using one of the streaming methods or not. | |
| getBytes | back to summary |
|---|---|
| public ByteBuffer getBytes() Return the ByteBuffer containing either the whole message, or the partial message, that
could not be decoded, or
| |
| getText | back to summary |
|---|---|
| public String getText() Return the encoded string that is either the whole message, or the partial
message that could not be decoded, or
| |