protected void shortenChunkArray ( ) { if ( currentChunkMarker < 0 ) return ; if ( currentChunkMarker >= chunks . size ( ) ) { chunks . clear ( ) ; return ; } PdfChunk split = ( PdfChunk ) ( chunks . get ( currentChunkMarker ) ) ; split . setValue ( splittedChunkText ) ; chunks . set ( currentChunkMarker , currentStandbyChunk ) ; for ( int j = currentChunkMarker - 1 ; j >= 0 ; -- j ) chunks . remove ( j ) ; }
Normalizes the list of chunks when the line is accepted .