public interface Decoder extends CharAppender
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_ERROR |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
appendTo(java.lang.StringBuilder builder,
int level)
Append a JSON representation of this Decoder value to a
StringBuilder object for debugging purposes. |
int |
decode(AsciiBuffer buffer,
int offset,
int length) |
SessionHeaderDecoder |
header()
Gets the Header component of this message.
|
int |
invalidTagId()
You must call
validate() first before relying on the result of this method. |
int |
rejectReason()
You must call
validate() first before relying on the result of this method. |
void |
reset()
Resets the result of the decoder.
|
Encoder |
toEncoder(Encoder encoder)
Copies the field values on the Encoder to be the same as this Decoder.
|
boolean |
validate()
If Validation is switched on then returns it true if the message is valid, false otherwise.
|
appendTostatic final int NO_ERROR
int decode(AsciiBuffer buffer, int offset, int length)
void reset()
boolean validate()
int invalidTagId()
validate() first before relying on the result of this method.NO_ERROR if there's no error.int rejectReason()
validate() first before relying on the result of this method.
This method doesn't return an enum in order to avoid cyclic compilation dependencies upon generated enums.NO_ERROR if there's no error.SessionHeaderDecoder header()
java.lang.StringBuilder appendTo(java.lang.StringBuilder builder,
int level)
StringBuilder object for debugging purposes.
Note: there is no guarantee that this internal format will be stable between versions this should only be used
for debugging purposes. This should be preferred to Object.toString() because it is a more efficient,
zero allocation, method.builder - the builder to append a JSON string representation to.level - the whitespace indentation level to use.Encoder toEncoder(Encoder encoder)
encoder - the encoder to set the values of.Copyright © 2015-2022 Real Logic Limited. All Rights Reserved.