private void eraseValue ( HeaderElement elem ) { // wipe out the removed value if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Erasing existing header: " + elem . getName ( ) ) ; } int next_index = this . lastCRLFBufferIndex ; int next_pos = this . lastCRLFPosition ; if ( null != elem . nextSequence && ! elem . nextSequence . wasAdded ( ) ) { next_index = elem . nextSequence . getLastCRLFBufferIndex ( ) ; next_pos = elem . nextSequence . getLastCRLFPosition ( ) ; } int start = elem . getLastCRLFPosition ( ) ; // if it's only in one buffer, this for loop does nothing for ( int x = elem . getLastCRLFBufferIndex ( ) ; x < next_index ; x ++ ) { // wiping out this buffer from start to limit this . parseBuffers [ x ] . position ( start ) ; this . parseBuffers [ x ] . limit ( start ) ; start = 0 ; } // last buffer, scribble from start until next_pos scribbleWhiteSpace ( this . parseBuffers [ next_index ] , start , next_pos ) ; }
Method to completely erase the input header from the parse buffers .