public class MuxParser extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MuxParser.Listener |
Constructor and Description |
---|
MuxParser() |
Modifier and Type | Method and Description |
---|---|
MuxParser.Listener |
getEvents() |
void |
parse(Frame frame)
Parse the raw
WebSocketFrame payload data for various Mux frames. |
long |
read139EncodedSize(ByteBuffer buffer)
Per section 9.1.
|
long |
readChannelId(ByteBuffer buffer)
Read Channel ID using Section 7.
|
void |
setEvents(MuxParser.Listener events) |
public MuxParser.Listener getEvents()
public void parse(Frame frame)
WebSocketFrame
payload data for various Mux frames.frame
- the WebSocketFrame to parse for mux payloadpublic long read139EncodedSize(ByteBuffer buffer)
buffer
- the buffer to read fromMuxException
- when the encoding does not make sense per the spec, or it is a value above Long.MAX_VALUE
public long readChannelId(ByteBuffer buffer)
buffer
- the buffer to parse from.MuxException
- when the encoding does not make sense per the spec.public void setEvents(MuxParser.Listener events)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.