com.nec.webotx.enterprise.web.connector.grizzly.comet
クラス CometWriter

java.lang.Object
  上位を拡張 com.nec.webotx.enterprise.web.connector.grizzly.comet.CometWriter

public class CometWriter
extends java.lang.Object

Non blocking Writer. This class can be used from a CometHandler to execute non blocking write. If the write was incomplete, the CometHandler must register itself using CometContext.registerAsyncWrite()


フィールドの概要
protected  byte[] chunkLength
          Buffer used for chunk length conversion.
 
コンストラクタの概要
CometWriter()
           
 
メソッドの概要
 boolean isComplete()
           
 boolean isReady()
          Return true if this instance is ready to read.
 void recycle()
           
protected  void setChannel(java.nio.channels.SocketChannel socketChannel)
           
 void setReady(boolean ready)
          false if this instance is no longer ready to read.
 int write(byte[] buf)
           
 int write(byte[] buf, int off, int len)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

chunkLength

protected byte[] chunkLength
Buffer used for chunk length conversion.

コンストラクタの詳細

CometWriter

public CometWriter()
メソッドの詳細

setChannel

protected void setChannel(java.nio.channels.SocketChannel socketChannel)

write

public int write(byte[] buf)
          throws java.io.IOException
例外:
java.io.IOException

write

public int write(byte[] buf,
                 int off,
                 int len)
          throws java.io.IOException
例外:
java.io.IOException

isComplete

public boolean isComplete()

recycle

public void recycle()

isReady

public boolean isReady()
Return true if this instance is ready to read.


setReady

public void setReady(boolean ready)
false if this instance is no longer ready to read.