private void startWrite()

in src/main/java/org/apache/sling/scripting/javascript/io/EspReader.java [743:757]


    private void startWrite(String startString) throws IOException {

        // inject the out.write( part and the initial string
        if (startString != null && startString.length() > 0) {
            doVerbatim(startString);
        }
        doVerbatim("out.write(");

        // if out is not set yet, we also acquire it now setting it
        // globally
        if (outUndefined) {
            doVerbatim(outInitStatement);
            outUndefined = false;
        }
    }