public static void writeLines(Collection<?> lines, String lineEnding,
                                  OutputStream output, String encoding) throws IOException {
    """
	Writes the <code>toString()</code> value of each item in a collection to
	an <code>OutputStream</code> line by line, using the specified character
	encoding and the specified line ending.
	<p/>
	Character encoding names can be found at
	<a href="http://www.iana.org/assignments/character-sets">IANA</a>.
	
	@param lines      the lines to write, null entries produce blank lines
	@param lineEnding the line separator to use, null is system default
	@param output     the <code>OutputStream</code> to write to, not null, not closed
	@param encoding   the encoding to use, null means platform default
	@throws NullPointerException        if the output is null
	@throws IOException                 if an I/O error occurs
	@throws UnsupportedCharsetException thrown instead of {@link UnsupportedEncodingException} in version 2.2 if the encoding is not
	supported.
	@since 1.1
    """
        writeLines(lines, lineEnding, output, Charsets.toCharset(encoding));
    }
public static void writeLines(Collection<?> lines, String lineEnding,
                                  OutputStream output, String encoding) throws IOException {
        writeLines(lines, lineEnding, output, Charsets.toCharset(encoding));
    }
public static void writeLines ( Collection < ? > lines , String lineEnding , OutputStream output , String encoding ) throws IOException { writeLines ( lines , lineEnding , output , Charsets . toCharset ( encoding ) ) ; }
Writes the <code>toString()</code> value of each item in a collection to
an <code>OutputStream</code> line by line, using the specified character
encoding and the specified line ending.
<p/>
Character encoding names can be found at
<a href="http://www.iana.org/assignments/character-sets">IANA</a>.

@param lines      the lines to write, null entries produce blank lines
@param lineEnding the line separator to use, null is system default
@param output     the <code>OutputStream</code> to write to, not null, not closed
@param encoding   the encoding to use, null means platform default
@throws NullPointerException        if the output is null
@throws IOException                 if an I/O error occurs
@throws UnsupportedCharsetException thrown instead of {@link UnsupportedEncodingException} in version 2.2 if the encoding is not
supported.
@since 1.1
Writes the <code > toString () < / code > value of each item in a collection to an <code > OutputStream< / code > line by line using the specified character encoding and the specified line ending . <p / > Character encoding names can be found at <a href = http : // www . iana . org / assignments / character - sets > IANA< / a > .