public class CoderWrapper<T> extends CoderAdapter implements javax.websocket.Decoder, javax.websocket.Encoder
| 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–2019 Oracle Corporation. All rights reserved.