Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
Modifier and Type | Method and Description |
---|---|
T |
decode(ByteBuffer bytes)
Decode the given bytes into an object of type T.
|
boolean |
willDecode(ByteBuffer bytes)
Answer whether the given bytes can be decoded into an object of type T.
|
T decode(ByteBuffer bytes) throws DecodeException
bytes
- the bytes to be decoded.DecodeException
boolean willDecode(ByteBuffer bytes)
bytes
- the bytes to be decoded.Copyright © 2019 JBoss by Red Hat. All rights reserved.