public class CoderWrapper<T> extends CoderAdapter implements Decoder, Encoder
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>| Constructor and Description |
|---|
CoderWrapper(Class<? extends T> coderClass,
Class<?> type)
Construct new coder wrapper.
|
CoderWrapper(T coder,
Class<?> type)
Construct new coder wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getCoder()
Get coder instance.
|
Class<? extends T> |
getCoderClass()
Get coder class.
|
Class<?> |
getType()
Get the return type of the encode / decode method.
|
String |
toString() |
destroy, initpublic CoderWrapper(Class<? extends T> coderClass, Class<?> type)
coderClass - coder class.type - return type provided by the encode / decode method. Cannot be null.Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.