src/main/java/org/apache/sling/scripting/core/impl/helper/OnDemandReader.java [34:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        this.request = request;
    }

    @Override
    public void close() throws IOException {
        if (delegatee != null) {
            delegatee.close();
        }
    }

    @Override
    public void mark(int readAheadLimit) throws IOException {
        getReader().mark(readAheadLimit);
    }

    @Override
    public boolean markSupported() {
        return delegatee != null && delegatee.markSupported();
    }

    @Override
    public int read() throws IOException {
        return getReader().read();
    }

    @Override
    public int read(char[] cbuf, int off, int len) throws IOException {
        return getReader().read(cbuf, off, len);
    }

    @Override
    public int read(char[] cbuf) throws IOException {
        return getReader().read(cbuf);
    }

    @Override
    public int read(CharBuffer target) throws IOException {
        return getReader().read(target);
    }

    @Override
    public boolean ready() throws IOException {
        return getReader().ready();
    }

    @Override
    public void reset() throws IOException {
        if (delegatee != null) {
            delegatee.reset();
        }
    }

    @Override
    public long skip(long n) throws IOException {
        return getReader().skip(n);
    }

    private Reader getReader() throws IOException {
        if (delegatee == null) {
            delegatee = request.getReader();
        }
        return delegatee;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/scripting/core/impl/helper/OnDemandReaderJakarta.java [34:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        this.request = request;
    }

    @Override
    public void close() throws IOException {
        if (delegatee != null) {
            delegatee.close();
        }
    }

    @Override
    public void mark(int readAheadLimit) throws IOException {
        getReader().mark(readAheadLimit);
    }

    @Override
    public boolean markSupported() {
        return delegatee != null && delegatee.markSupported();
    }

    @Override
    public int read() throws IOException {
        return getReader().read();
    }

    @Override
    public int read(char[] cbuf, int off, int len) throws IOException {
        return getReader().read(cbuf, off, len);
    }

    @Override
    public int read(char[] cbuf) throws IOException {
        return getReader().read(cbuf);
    }

    @Override
    public int read(CharBuffer target) throws IOException {
        return getReader().read(target);
    }

    @Override
    public boolean ready() throws IOException {
        return getReader().ready();
    }

    @Override
    public void reset() throws IOException {
        if (delegatee != null) {
            delegatee.reset();
        }
    }

    @Override
    public long skip(long n) throws IOException {
        return getReader().skip(n);
    }

    private Reader getReader() throws IOException {
        if (delegatee == null) {
            delegatee = request.getReader();
        }
        return delegatee;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



