question: void write ( ) { clearAttributes ( ) ; if ( termAttribute . length ( ) < buffer . length ( ) ) { termAttribute . resizeBuffer ( buffer . length ( ) ) ; } char termbuffer [ ] = termAttribute . buffer ( ) ; buffer . getChars ( 0 , buffer . length ( ) , termbuffer , 0 ) ; termAttribute . setLength ( buffer . length ( ) ) ; if ( hasIllegalOffsets ) { offsetAttribute . setOffset ( savedStartOffset , savedEndOffset ) ; } else { offsetAttribute . setOffset ( startOffset , endOffset ) ; } posIncAttribute . setPositionIncrement ( position ( true ) ) ; typeAttribute . setType ( savedType ) ; accumPosInc = 0 ; }
target:  Writes the concatenation to the attributes