class SimpleTextWriter implements Closeable {

    public SimpleTextWriter write(String s) throws IOException {
        try {
            if (s == null || s.length() == 0)
                return this;
            writer.write(s);
            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);

}