Javadoc.
This commit is contained in:
parent
adc4faa784
commit
8000d69590
|
@ -1261,21 +1261,19 @@ public final class CSVFormat implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints to the specified output.
|
* Prints to the specified output, returns a {@code CSVPrinter} which the caller MUST close.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* See also {@link CSVPrinter}.
|
* See also {@link CSVPrinter}.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param out
|
* @param out the output.
|
||||||
* the output.
|
* @param charset A charset.
|
||||||
* @param charset
|
|
||||||
* A charset.
|
|
||||||
* @return a printer to an output.
|
* @return a printer to an output.
|
||||||
* @throws IOException
|
* @throws IOException thrown if the optional header cannot be printed.
|
||||||
* thrown if the optional header cannot be printed.
|
|
||||||
* @since 1.5
|
* @since 1.5
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("resource")
|
||||||
public CSVPrinter print(final Path out, final Charset charset) throws IOException {
|
public CSVPrinter print(final Path out, final Charset charset) throws IOException {
|
||||||
return print(Files.newBufferedWriter(out, charset));
|
return print(Files.newBufferedWriter(out, charset));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue