org.eclipse.jetty.websocket
类 WebSocketParserD06
java.lang.Object
org.eclipse.jetty.websocket.WebSocketParserD06
- 所有已实现的接口:
- WebSocketParser
public class WebSocketParserD06
- extends Object
- implements WebSocketParser
Parser the WebSocket protocol.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketParserD06
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 handled
isBufferEmpty
public boolean isBufferEmpty()
- 指定者:
- 接口
WebSocketParser 中的 isBufferEmpty
getBuffer
public Buffer getBuffer()
- 指定者:
- 接口
WebSocketParser 中的 getBuffer
parseNext
public int parseNext()
- Parse to next event.
Parse to the next
WebSocketParser.FrameHandler event or until no more data is
available. Fill data from the EndPoint only as necessary.
- 指定者:
- 接口
WebSocketParser 中的 parseNext
- 返回:
- An indication of progress or otherwise. -1 indicates EOF, 0 indicates
that no bytes were read and no messages parsed. A positive number indicates either
the bytes filled or the messages parsed.
fill
public void fill(Buffer buffer)
- 指定者:
- 接口
WebSocketParser 中的 fill
Copyright © 2013. All Rights Reserved.