public void writeContent ( final OutputStream result ) throws IOException { if ( this . content . size ( ) == 0 ) { result . write ( RtfParagraph . PARAGRAPH_DEFAULTS ) ; if ( this . parentRow . getParentTable ( ) . getTableFitToPage ( ) ) { result . write ( RtfParagraphStyle . KEEP_TOGETHER_WITH_NEXT ) ; } result . write ( RtfParagraph . IN_TABLE ) ; } else { for ( int i = 0 ; i < this . content . size ( ) ; i ++ ) { RtfBasicElement rtfElement = ( RtfBasicElement ) this . content . get ( i ) ; if ( rtfElement instanceof RtfParagraph ) { ( ( RtfParagraph ) rtfElement ) . setKeepTogetherWithNext ( this . parentRow . getParentTable ( ) . getTableFitToPage ( ) ) ; } rtfElement . writeContent ( result ) ; if ( rtfElement instanceof RtfParagraph && i < ( this . content . size ( ) - 1 ) ) { result . write ( RtfParagraph . PARAGRAPH ) ; } } } result . write ( DocWriter . getISOBytes ( "\\cell" ) ) ; }
Write the content of this RtfCell