public class WebSocketGeneratorRFC6455 extends java.lang.Object implements WebSocketGenerator
| Constructor and Description |
|---|
WebSocketGeneratorRFC6455(WebSocketBuffers buffers,
EndPoint endp) |
WebSocketGeneratorRFC6455(WebSocketBuffers buffers,
EndPoint endp,
MaskGen maskGen) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFrame(byte flags,
byte opcode,
byte[] content,
int offset,
int length) |
int |
flush() |
int |
flushBuffer() |
Buffer |
getBuffer() |
boolean |
isBufferEmpty() |
void |
returnBuffer() |
java.lang.String |
toString() |
public WebSocketGeneratorRFC6455(WebSocketBuffers buffers, EndPoint endp)
public WebSocketGeneratorRFC6455(WebSocketBuffers buffers, EndPoint endp, MaskGen maskGen)
public Buffer getBuffer()
public void addFrame(byte flags,
byte opcode,
byte[] content,
int offset,
int length)
throws java.io.IOException
addFrame in interface WebSocketGeneratorjava.io.IOExceptionpublic int flushBuffer()
throws java.io.IOException
java.io.IOExceptionpublic int flush()
throws java.io.IOException
flush in interface WebSocketGeneratorjava.io.IOExceptionpublic boolean isBufferEmpty()
isBufferEmpty in interface WebSocketGeneratorpublic void returnBuffer()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013 FuseSource, Corp.. All Rights Reserved.