Example usage for javax.websocket Encoder.Text interface-usage

List of usage examples for javax.websocket Encoder.Text interface-usage

Introduction

In this page you can find the example usage for javax.websocket Encoder.Text interface-usage.

Usage

From source file org.sample.encoder.MyMessageEncoder.java

/**
 * @author Arun Gupta
 */
public class MyMessageEncoder implements Encoder.Text<MyMessage> {
    @Override
    public String encode(MyMessage myMessage) throws EncodeException {

From source file org.sample.whiteboard.FigureEncoder.java

/**
 * @author Arun Gupta
 */
public class FigureEncoder implements Encoder.Text<Figure> {
    @Override
    public String encode(Figure figure) throws EncodeException {