FileDocCategorySizeDatePackage
CometInputStream.javaAPI DocGlassfish v2 API2651Fri May 04 22:37:08 BST 2007com.sun.enterprise.web.connector.grizzly.comet

CometInputStream

public class CometInputStream extends com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream
Simple InputStream implementation that is backed by a ByteBuffer
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
public CometInputStream()
Creates a new CometInputStream

        this.byteBuffer = ByteBuffer.allocateDirect(4 * 1096);
    
Methods Summary
public voidrecycle()
Recycle the stream.

        byteBuffer.clear();
        key = null;