public PrintWriter getWriter()

in src/main/java/org/apache/sling/servlethelpers/ResponseBodySupport.java [74:83]


    public PrintWriter getWriter(String charset) {
        if (printWriter == null) {
            try {
                printWriter = new PrintWriter(new OutputStreamWriter(getOutputStream(), defaultCharset(charset)));
            } catch (UnsupportedEncodingException ex) {
                throw new RuntimeException("Unsupported encoding: " + defaultCharset(charset), ex);
            }
        }
        return printWriter;
    }