|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beep4j.internal.DefaultStreamParser
public class DefaultStreamParser
| Constructor Summary | |
|---|---|
DefaultStreamParser(FrameHandler handler,
TransportMapping mapping)
|
|
| Method Summary | |
|---|---|
protected void |
forward(Frame frame)
|
void |
handleHeader(java.lang.String[] tokens)
Callback method invoked when a header has been parsed. |
void |
handlePayload(java.nio.ByteBuffer payload)
Callback method invoked when the payload has been received. |
void |
handleTrailer()
Callback method invoked when the trailer has been parsed. |
void |
process(java.nio.ByteBuffer buffer)
Processes the content of the given ByteBuffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultStreamParser(FrameHandler handler,
TransportMapping mapping)
| Method Detail |
|---|
public void process(java.nio.ByteBuffer buffer)
StreamParser
process in interface StreamParserbuffer - the byte bufferprotected void forward(Frame frame)
public void handleHeader(java.lang.String[] tokens)
ParseStateContext
handleHeader in interface ParseStateContexttokens - the header tokenspublic void handlePayload(java.nio.ByteBuffer payload)
ParseStateContext
handlePayload in interface ParseStateContextpublic void handleTrailer()
ParseStateContext
handleTrailer in interface ParseStateContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||