FileDocCategorySizeDatePackage
NoParsingAlgorithm.javaAPI DocGlassfish v2 API3395Fri May 04 22:37:06 BST 2007com.sun.enterprise.web.connector.grizzly.algorithms

NoParsingAlgorithm

public class NoParsingAlgorithm extends StreamAlgorithmBase
This algorithm doesn't parse the bytes, delegating the work to the InternalInputBuffer.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
public NoParsingAlgorithm()

        if (embeddedInGlassFish){
            handler = new NoParsingHandler();
        } else {
            handler = new DummyHandler();
        }            
    
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);
        }