public abstract class JsrEncoder<T>
extends java.lang.Object
implements javax.websocket.Encoder.TextStream<T>
Modifier and Type | Field and Description |
---|---|
private javax.json.JsonWriterFactory |
factory |
Constructor and Description |
---|
JsrEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected abstract void |
doWrite(javax.json.JsonWriter writer,
T t) |
void |
encode(T t,
java.io.Writer writer) |
void |
init(javax.websocket.EndpointConfig endpointConfig) |
protected abstract void doWrite(javax.json.JsonWriter writer, T t)
public void init(javax.websocket.EndpointConfig endpointConfig)
init
in interface javax.websocket.Encoder
public void destroy()
destroy
in interface javax.websocket.Encoder
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.