|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.httpio.LineReader
public class LineReader
A class that reads lines from a ByteBuffer.
Constructor Summary | |
---|---|
LineReader(boolean strictHttp)
Create a new LineReader. |
Method Summary | |
---|---|
void |
readLine(java.nio.ByteBuffer buffer,
LineListener listener)
Try to read a line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineReader(boolean strictHttp)
There are many web servers on the internet that still use broken HTTP and send simple \n\n for end of header. Be careful of how you set the strict flag.
strictHttp
- if true only CRLF will be accepted as newlines,
if false single LF will also be accepted.Method Detail |
---|
public void readLine(java.nio.ByteBuffer buffer, LineListener listener)
buffer
- the ByteBuffer to read bytes from.listener
- the line listener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |