FileDocCategorySizeDatePackage
StaticStreamAlgorithm.javaAPI DocGlassfish v2 API3243Fri May 04 22:37:10 BST 2007com.sun.enterprise.web.connector.grizzly.standalone

StaticStreamAlgorithm

public class StaticStreamAlgorithm extends com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
This algorithm doesn't parse the bytes, delegating the work to the InternalInputBuffer.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
public StaticStreamAlgorithm()

        handler = new StaticHandler();
    
Methods Summary
public com.sun.enterprise.web.connector.grizzly.HandlergetHandler()
Return the Handler used by this algorithm.

        return handler;
    
public booleanparse(java.nio.ByteBuffer byteBuffer)
Do not parse the bytes and automatically flip the ByteBuffer

        byteBuffer.flip();
        return true;
    
public java.nio.ByteBufferpreParse(java.nio.ByteBuffer byteBuffer)
Do nothing, as the ByteBufferInputStream will take care of reading the missing bytes.

 
        return byteBuffer;
    
public voidrecycle()
Recycle this object.

        socketChannel = null;
        if ( handler != null){
            handler.attachChannel(null);
        }