public interface ValueConverter
| Modifier and Type | Method and Description |
|---|---|
Object |
decodeValue(byte[] bytes)
Decode a byte array and convert it into an object depending on the
converter implementation.
|
byte[] |
encodeValue(Object value)
Encode an object as a byte array depending on the converter implementation.
|
byte[] encodeValue(Object value) throws IOException
value - Value to be encoded.IOException - if any problem is encountered while encoding.Object decodeValue(byte[] bytes) throws IOException
bytes - Byte array to be decoded.IOException - if any problem is encountered while decoding.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.