java.io.Closeable
, java.lang.AutoCloseable
public class Encoding
extends java.lang.Object
implements java.io.Closeable
Constructor | Description |
---|---|
Encoding(java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Encoder>>> binaryEncoders,
java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Decoder>>> binaryDecoders,
java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Encoder>>> textEncoders,
java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Decoder>>> textDecoders) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canDecodeBinary(java.lang.Class<?> type) |
|
boolean |
canDecodeText(java.lang.Class<?> type) |
|
boolean |
canEncodeBinary(java.lang.Class<?> type) |
|
boolean |
canEncodeText(java.lang.Class<?> type) |
|
void |
close() |
|
java.lang.Object |
decodeBinary(java.lang.Class<?> targetType,
byte[] bytes) |
|
java.lang.Object |
decodeText(java.lang.Class<?> targetType,
java.lang.String message) |
|
java.nio.ByteBuffer |
encodeBinary(java.lang.Object o) |
|
java.lang.String |
encodeText(java.lang.Object o) |
public Encoding(java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Encoder>>> binaryEncoders, java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Decoder>>> binaryDecoders, java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Encoder>>> textEncoders, java.util.Map<java.lang.Class<?>,java.util.List<io.undertow.servlet.api.InstanceHandle<? extends javax.websocket.Decoder>>> textDecoders)
public boolean canEncodeText(java.lang.Class<?> type)
public boolean canDecodeText(java.lang.Class<?> type)
public boolean canEncodeBinary(java.lang.Class<?> type)
public boolean canDecodeBinary(java.lang.Class<?> type)
public java.lang.Object decodeText(java.lang.Class<?> targetType, java.lang.String message) throws javax.websocket.DecodeException
javax.websocket.DecodeException
public java.lang.Object decodeBinary(java.lang.Class<?> targetType, byte[] bytes) throws javax.websocket.DecodeException
javax.websocket.DecodeException
public java.lang.String encodeText(java.lang.Object o) throws javax.websocket.EncodeException
javax.websocket.EncodeException
public java.nio.ByteBuffer encodeBinary(java.lang.Object o) throws javax.websocket.EncodeException
javax.websocket.EncodeException
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
Copyright © 2018. All rights reserved.