public void printlnComment ( String comment ) { if ( this . strategy . isCommentingDisabled ( ) ) { return ; } if ( ! newLine ) { out . println ( ) ; } out . print ( this . strategy . getCommentStart ( ) ) ; out . print ( ' ' ) ; for ( int i = 0 ; i < comment . length ( ) ; i ++ ) { char c = comment . charAt ( i ) ; switch ( c ) { case ' ' : if ( i + 1 < comment . length ( ) && comment . charAt ( i + 1 ) == ' ' ) { i ++ ; } // break intentionally excluded. case ' ' : out . println ( ) ; out . print ( this . strategy . getCommentStart ( ) ) ; out . print ( ' ' ) ; break ; default : out . print ( c ) ; break ; } } out . println ( ) ; out . flush ( ) ; newLine = true ; }
Put a comment among the comma separated values . Comments will always begin on a new line and occupy a least one full line . The character specified to star comments and a space will be inserted at the beginning of each new line in the comment .