public void comment ( String message ) throws IOException { if ( message . indexOf ( NEW_LINE_CHAR ) != - 1 ) { String line ; int start = 0 ; while ( ( line = readLine ( message , start ) ) != null ) { writer . write ( COMMENT_LINE_START ) ; writer . write ( SPACE_CHAR ) ; writer . write ( line ) ; newLine ( ) ; start += line . length ( ) ; start = skipNewLineChar ( message , start ) ; if ( start == - 1 ) { break ; } } if ( start != - 1 ) { writer . write ( COMMENT_LINE_START ) ; newLine ( ) ; } } else { writer . write ( COMMENT_LINE_START ) ; writer . write ( SPACE_CHAR ) ; writer . write ( message ) ; newLine ( ) ; } }
Writes a comment to the character - output stream .