class SimpleTextWriter implements Closeable {

    public SimpleTextWriter writeLines(Collection<String> lines) throws IOException {
        try {
            IOs.writeLines(lines, writer);
            return this;
        } finally {
            if (!keepOpen)
                close();
        }
    }

    private  SimpleTextWriter(
            BufferedWriter writer,
            OutputStream os,
            String encoding,
            boolean keepOpen);
    public  SimpleTextWriter(String fileName);
    public  SimpleTextWriter(String fileName, String encoding);
    public  SimpleTextWriter(File file, String encoding);
    public  SimpleTextWriter(File file);

}