ValueConverterpublic final class GenericConverter extends java.lang.Object implements ValueConverter
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
decodeValue(byte[] bytes) |
Decode a byte array and convert it into an object depending on the
converter implementation.
|
byte[] |
encodeValue(java.lang.Object value) |
Encode an object as a byte array depending on the converter implementation.
|
static GenericConverter |
getInstance() |
public static GenericConverter getInstance()
public byte[] encodeValue(java.lang.Object value)
throws java.io.IOException
ValueConverterencodeValue in interface ValueConvertervalue - Value to be encoded.java.io.IOException - if any problem is encountered while encoding.public java.lang.Object decodeValue(byte[] bytes)
throws java.io.IOException
ValueConverterdecodeValue in interface ValueConverterbytes - Byte array to be decoded.java.io.IOException - if any problem is encountered while decoding.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.