net.sf.jbaobab.io.impl
Class ByteArraySeperator
java.lang.Object
net.sf.jbaobab.io.AbstractSeperator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArraySeperator
public ByteArraySeperator(byte... terminator)
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