public JBBPTextWriter Comment ( final String ... comment ) throws IOException { if ( this . flagCommentsAllowed ) { if ( comment != null ) { for ( final String c : comment ) { if ( c == null ) { continue ; } if ( c . indexOf ( ' ' ) >= 0 ) { final String [ ] splitted = c . split ( "\\n" , - 1 ) ; for ( final String s : splitted ) { this . ensureCommentMode ( ) ; this . write ( s ) ; } } else { this . ensureCommentMode ( ) ; this . write ( c ) ; } } this . prevLineCommentsStartPosition = 0 ; } } else { ensureNewLineMode ( ) ; } return this ; }
Print comments . Wilt aligning of line start for multi - line comment . Comments will be printed only if they are allowed .