net.sf.jbaobab.io
Interface Translator<P>

All Known Subinterfaces:
Protocol<P>
All Known Implementing Classes:
ProtocolHelper.DummyTranslatorImpl, ProtocolHelper.PackedProtocolImpl, RoughHttpProtocol, StringTranslator

public interface Translator<P>

An interface for translating ByteBuffer into object and translating object into ByteBuffer.

Author:
Oakyoon Cha

Method Summary
 P translate(ByteBuffer buffer)
           
 ByteBuffer translate(P packet)
           
 

Method Detail

translate

P translate(ByteBuffer buffer)

translate

ByteBuffer translate(P packet)