org.jboss.narayana.blacktie.jatmibroker.codec
Class DefaultCodecImpl

java.lang.Object
  extended by org.jboss.narayana.blacktie.jatmibroker.codec.DefaultCodecImpl
All Implemented Interfaces:
org.jboss.narayana.blacktie.jatmibroker.core.transport.Codec

public class DefaultCodecImpl
extends Object
implements org.jboss.narayana.blacktie.jatmibroker.core.transport.Codec


Constructor Summary
DefaultCodecImpl(Connection connection)
           
 
Method Summary
 BufferImpl decode(String type, String subtype, byte[] data, int len)
           
 byte[] encode(BufferImpl buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCodecImpl

public DefaultCodecImpl(Connection connection)
Method Detail

decode

public BufferImpl decode(String type,
                         String subtype,
                         byte[] data,
                         int len)
                  throws ConnectionException,
                         org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
Specified by:
decode in interface org.jboss.narayana.blacktie.jatmibroker.core.transport.Codec
Throws:
ConnectionException
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException

encode

public byte[] encode(BufferImpl buf)
              throws ConnectionException
Specified by:
encode in interface org.jboss.narayana.blacktie.jatmibroker.core.transport.Codec
Throws:
ConnectionException


Copyright © 2013. All Rights Reserved.