javax.websocket
Class Encoder.Adapter

java.lang.Object
  extended by javax.websocket.Encoder.Adapter
All Implemented Interfaces:
Encoder
Enclosing interface:
Encoder

public abstract static class Encoder.Adapter
extends Object
implements Encoder

A convenience class for developers who do not wish to provide any special behavior in the init() or destroy() methods.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.websocket.Encoder
Encoder.Adapter, Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>
 
Constructor Summary
Encoder.Adapter()
          Constructs an adapter.
 
Method Summary
 void destroy()
          This method does nothing and may be overridden.
 void init(EndpointConfig config)
          This method does nothing and may be overridden.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encoder.Adapter

public Encoder.Adapter()
Constructs an adapter.

Method Detail

init

public void init(EndpointConfig config)
This method does nothing and may be overridden.

Specified by:
init in interface Encoder
Parameters:
config - the endpoint configuration object when being brought into service

destroy

public void destroy()
This method does nothing and may be overridden.

Specified by:
destroy in interface Encoder


Copyright © 2012-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : users@websocket-spec.java.net