org.eclipse.jetty.websocket
类 WebSocketGeneratorD00

java.lang.Object
  继承者 org.eclipse.jetty.websocket.WebSocketGeneratorD00
所有已实现的接口:
WebSocketGenerator

public class WebSocketGeneratorD00
extends Object
implements WebSocketGenerator

WebSocketGenerator. This class generates websocket packets. It is fully synchronized because it is likely that async threads will call the addMessage methods while other threads are flushing the generator.


构造方法摘要
WebSocketGeneratorD00(WebSocketBuffers buffers, EndPoint endp)
           
 
方法摘要
 void addFrame(byte flags, byte opcode, byte[] content, int offset, int length)
           
 int flush()
           
 int flush(int blockFor)
           
 boolean isBufferEmpty()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WebSocketGeneratorD00

public WebSocketGeneratorD00(WebSocketBuffers buffers,
                             EndPoint endp)
方法详细信息

addFrame

public void addFrame(byte flags,
                     byte opcode,
                     byte[] content,
                     int offset,
                     int length)
              throws IOException
指定者:
接口 WebSocketGenerator 中的 addFrame
抛出:
IOException

flush

public int flush(int blockFor)
          throws IOException
抛出:
IOException

flush

public int flush()
          throws IOException
指定者:
接口 WebSocketGenerator 中的 flush
抛出:
IOException

isBufferEmpty

public boolean isBufferEmpty()
指定者:
接口 WebSocketGenerator 中的 isBufferEmpty


Copyright © 2013. All Rights Reserved.