net.sf.jbaobab.helper
Class ProtocolHelper

java.lang.Object
  extended by net.sf.jbaobab.helper.ProtocolHelper

public final class ProtocolHelper
extends Object

A helper class for packing Seperator and Translator into Protocol.

Author:
Oakyoon Cha

Nested Class Summary
static class ProtocolHelper.DummyTranslatorImpl
           A Translator that does not translate anything.
static class ProtocolHelper.PackedProtocolImpl<P>
           A Protocol that delegates operations to Seperator and Translator.
 
Method Summary
static Protocol<ByteBuffer> pack(Seperator seperator)
           
static
<P> Protocol<P>
pack(Seperator seperator, Translator<P> translator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pack

public static <P> Protocol<P> pack(Seperator seperator,
                                   Translator<P> translator)

pack

public static Protocol<ByteBuffer> pack(Seperator seperator)