public void writeContent ( final OutputStream result ) throws IOException { if ( this . background != null ) { result . write ( OPEN_GROUP ) ; } this . font . writeBegin ( result ) ; if ( superSubScript < 0 ) { result . write ( FONT_SUBSCRIPT ) ; } else if ( superSubScript > 0 ) { result . write ( FONT_SUPERSCRIPT ) ; } if ( this . background != null ) { result . write ( BACKGROUND_COLOR ) ; result . write ( intToByteArray ( this . background . getColorNumber ( ) ) ) ; } result . write ( DELIMITER ) ; document . filterSpecialChar ( result , content , false , softLineBreaks || this . document . getDocumentSettings ( ) . isAlwaysGenerateSoftLinebreaks ( ) ) ; if ( superSubScript != 0 ) { result . write ( FONT_END_SUPER_SUBSCRIPT ) ; } this . font . writeEnd ( result ) ; if ( this . background != null ) { result . write ( CLOSE_GROUP ) ; } }
Writes the content of this RtfChunk . First the font information is written then the content and then more font information