|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.httpio.ChunkHandler
public class ChunkHandler
The chunk handler gets raw data buffers and passes the de-chunked content to the listener.
| Constructor Summary | |
|---|---|
ChunkHandler(ChunkDataFeeder feeder,
boolean strictHttp)
Create a new ChunkHandler that will get data from the given feeder. |
|
| Method Summary | |
|---|---|
long |
getTotalRead()
Get the total number of chunk block data bytes read |
void |
handleData(BufferHandle bufHandle)
Try to parse and handle the new data |
void |
setBlockListener(BlockListener listener)
Set the chunk block listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChunkHandler(ChunkDataFeeder feeder,
boolean strictHttp)
feeder - the raw data providerstrictHttp - if true then parse http strict, that is use \r\n
for line breaks.| Method Detail |
|---|
public void setBlockListener(BlockListener listener)
listener - the listener for the chunk datapublic long getTotalRead()
public void handleData(BufferHandle bufHandle)
bufHandle - the data to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||