| Modifier and Type | Field and Description |
|---|---|
| public static final ByteArrayDecoder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | decode(ByteBuffer
the bytes to be decoded. bytes)Implements jakarta. Decode the given bytes into an object of type T. |
| public boolean | willDecode(ByteBuffer
the bytes to be decoded. bytes)Implements jakarta. Answer whether the given bytes can be decoded into an object of type T. |
| INSTANCE | back to summary |
|---|---|
| public static final ByteArrayDecoder INSTANCE | |
| ByteArrayDecoder | back to summary |
|---|---|
| public ByteArrayDecoder() | |
| decode | back to summary |
|---|---|
| public byte[] decode(ByteBuffer bytes) throws DecodeException Implements jakarta. Doc from jakarta. Decode the given bytes into an object of type T. It is not safe for other threads to use the ByteBuffer until the decoding of the given bytes is complete. If the decoding completes successfully, the buffer's limit will be unchanged and the buffer's position will be equal to the limit. If the decoding does not complete successfully, the state of the buffer is undefined.
| |
| willDecode | back to summary |
|---|---|
| public boolean willDecode(ByteBuffer bytes) Implements jakarta. Doc from jakarta. Answer whether the given bytes can be decoded into an object of type T. It is not safe for other threads to use the ByteBuffer until this method completes. When the method completes, the buffer will be in the same state as it was at the start of the method call.
| |