public class WebSocketParserD06 extends Object implements WebSocketParser
Modifier and Type | Class and Description |
---|---|
static class |
WebSocketParserD06.State |
WebSocketParser.FrameHandler
Constructor and Description |
---|
WebSocketParserD06(WebSocketBuffers buffers,
EndPoint endp,
WebSocketParser.FrameHandler handler,
boolean masked) |
public WebSocketParserD06(WebSocketBuffers buffers, EndPoint endp, WebSocketParser.FrameHandler handler, boolean masked)
buffers
- The buffers to use for parsing. Only the Buffers.getBuffer()
is used.
This should be a direct buffer if binary data is mostly used or an indirect buffer if utf-8 data
is mostly used.endp
- the endpointhandler
- the handler to notify when a parse event occursmasked
- whether masking should be handledpublic boolean isBufferEmpty()
isBufferEmpty
in interface WebSocketParser
public Buffer getBuffer()
getBuffer
in interface WebSocketParser
public int parseNext()
WebSocketParser.FrameHandler
event or until no more data is
available. Fill data from the EndPoint
only as necessary.parseNext
in interface WebSocketParser
public void fill(Buffer buffer)
fill
in interface WebSocketParser
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.