net.sf.jbaobab.io.impl
Class ByteArraySeperator

java.lang.Object
  extended by net.sf.jbaobab.io.AbstractSeperator
      extended by net.sf.jbaobab.io.impl.ByteArraySeperator
All Implemented Interfaces:
Seperator

public class ByteArraySeperator
extends AbstractSeperator

A Seperator that takes byte array as delimeter.

Author:
Oakyoon Cha

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

Constructor Detail

ByteArraySeperator

public ByteArraySeperator(byte... terminator)
Method Detail

ready

public boolean ready(ByteBuffer source)

seperate

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

terminate

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