javax.websocket
Class Decoder.Adapter

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

public abstract static class Decoder.Adapter
extends Object
implements Decoder

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.Decoder
Decoder.Adapter, Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
 
Constructor Summary
Decoder.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

Decoder.Adapter

public Decoder.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 Decoder
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 Decoder


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