/** * Writes information about the options this parser recognizes to the given output sink. * * The output sink is flushed, but not closed. * * @param sink the sink to write information to * @throws IOException if there is a problem writing to the sink * @throws NullPointerException if {@code sink} is {@code null} * @see #printHelpOn(OutputStream) */ public void printHelpOn( Writer sink ) throws IOException { sink.write( helpFormatter.format( recognizedOptions.toJavaUtilMap() ) ); sink.flush(); }
/** * Writes information about the options this parser recognizes to the given output sink. * * The output sink is flushed, but not closed. * * @param sink the sink to write information to * @throws IOException if there is a problem writing to the sink * @throws NullPointerException if {@code sink} is {@code null} * @see #printHelpOn(OutputStream) */ public void printHelpOn( Writer sink ) throws IOException { sink.write( helpFormatter.format( _recognizedOptions() ) ); sink.flush(); }
/** * Writes information about the options this parser recognizes to the given output sink. * * The output sink is flushed, but not closed. * * @param sink the sink to write information to * @throws IOException if there is a problem writing to the sink * @throws NullPointerException if {@code sink} is {@code null} * @see #printHelpOn(OutputStream) */ public void printHelpOn( Writer sink ) throws IOException { sink.write( helpFormatter.format( _recognizedOptions() ) ); sink.flush(); }
/** * Writes information about the options this parser recognizes to the given output sink. * * The output sink is flushed, but not closed. * * @param sink the sink to write information to * @throws IOException if there is a problem writing to the sink * @throws NullPointerException if {@code sink} is {@code null} * @see #printHelpOn(OutputStream) */ public void printHelpOn( Writer sink ) throws IOException { sink.write( helpFormatter.format( recognizedOptions.toJavaUtilMap() ) ); sink.flush(); }
/** * Writes information about the options this parser recognizes to the given output sink. * * The output sink is flushed, but not closed. * * @param sink the sink to write information to * @throws IOException if there is a problem writing to the sink * @throws NullPointerException if {@code sink} is {@code null} * @see #printHelpOn(OutputStream) */ public void printHelpOn( Writer sink ) throws IOException { sink.write( helpFormatter.format( recognizedOptions.toJavaUtilMap() ) ); sink.flush(); }