rabbit.httpio
Class LineReader
java.lang.Object
rabbit.httpio.LineReader
public class LineReader
- extends Object
A class that reads lines from a ByteBuffer.
- Author:
- Robert Olofsson
Constructor Summary |
LineReader(boolean strictHttp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineReader
public LineReader(boolean strictHttp)
readLine
public void readLine(ByteBuffer buffer,
LineListener listener)
throws IOException
- Try to read a line.
If a line ending is found the buffers mark is set to the next position.
- Parameters:
buffer
- the ByteBuffer to read bytes from.listener
- the line listener.
- Throws:
IOException