MCPcopy Index your code
hub / github.com/apache/commons-io / writeLines

Method writeLines

src/main/java/org/apache/commons/io/IOUtils.java:1968–1972  ·  view source on GitHub ↗

Writes the toString() value of each item in a collection to an OutputStream line by line, using the default character encoding of the platform and the specified line ending. @param lines the lines to write, null entries produce blank lines @param lineEnding the line separa

(final Collection<?> lines, final String lineEnding,
                                  final OutputStream output)

Source from the content-addressed store, hash-verified

1966 * @deprecated 2.5 use {@link #writeLines(Collection, String, OutputStream, Charset)} instead
1967 */
1968 @Deprecated
1969 public static void writeLines(final Collection<?> lines, final String lineEnding,
1970 final OutputStream output) throws IOException {
1971 writeLines(lines, lineEnding, output, Charset.defaultCharset());
1972 }
1973
1974 /**
1975 * Writes the <code>toString()</code> value of each item in a collection to

Calls 4

toCharsetMethod · 0.95
writeMethod · 0.45
getBytesMethod · 0.45
toStringMethod · 0.45