public interface IContentCodec
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
decode(byte[] val,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.Class<?>,java.lang.Object[]> info,
IErrorReporter rep)
Decode data with the codec.
|
byte[] |
encode(java.lang.Object val,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.Class<?>,java.lang.Object[]> info,
IEncodingContext context)
Encode data with the codec.
|
boolean |
match(java.util.Properties props)
Test if the codec can be used with the provided meta information.
|
boolean match(java.util.Properties props)
props
- The meta information.byte[] encode(java.lang.Object val, java.lang.ClassLoader classloader, java.util.Map<java.lang.Class<?>,java.lang.Object[]> info, IEncodingContext context)
val
- The value.java.lang.Object decode(byte[] val, java.lang.ClassLoader classloader, java.util.Map<java.lang.Class<?>,java.lang.Object[]> info, IErrorReporter rep)
val
- The string value.