org.szegedi.spring.web.jsflow.codec.support
Interface OneWayCodec


public interface OneWayCodec

Basic worker interface, encapsulating a single encoding or decoding operation.

Version:
$Id: OneWayCodec.java 82 2007-09-19 11:09:08Z szegedia $
Author:
Attila Szegedi

Method Summary
 byte[] code(byte[] data)
          A single encoding or decoding operation.
 

Method Detail

code

byte[] code(byte[] data)
            throws java.lang.Exception
A single encoding or decoding operation. This method will always be invoked on a single thread at a time (although not always on the same thread). It may be invoked multiple times.

Parameters:
data - the data to encode or decode
Returns:
the encoded or decoded data
Throws:
java.lang.Exception