net.sf.jbaobab.io
Class AbstractSeperator

java.lang.Object
  extended by net.sf.jbaobab.io.AbstractSeperator
All Implemented Interfaces:
Seperator
Direct Known Subclasses:
ByteArraySeperator, CRLFSeperator, FixedLengthSeperator, RoughHttpProtocol

public abstract class AbstractSeperator
extends Object
implements Seperator

An abstract base implementation of Seperator interface, including seperate(ByteBuffer) method.

Author:
Oakyoon Cha

Constructor Summary
AbstractSeperator()
           
 
Method Summary
protected  int cursor()
           
protected  int cursor(int cursor)
           
 ByteBuffer seperate(ByteBuffer source)
           
 ByteBuffer terminate(ByteBuffer source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jbaobab.io.Seperator
ready
 

Constructor Detail

AbstractSeperator

public AbstractSeperator()
Method Detail

cursor

protected int cursor(int cursor)

cursor

protected int cursor()

seperate

public ByteBuffer seperate(ByteBuffer source)
Specified by:
seperate in interface Seperator

terminate

public ByteBuffer terminate(ByteBuffer source)
Specified by:
terminate in interface Seperator