public Reader getSource()

in src/main/java/org/apache/sling/scripting/java/impl/CompilationUnit.java [50:61]


    public Reader getSource() throws IOException {
        InputStream fr = null;
        try {
            fr = ioProvider.getInputStream(this.sourceFile);
            return new InputStreamReader(fr, ioProvider.getOptions().getJavaEncoding());
        } catch (IOException e) {
            if ( fr != null ) {
                try { fr.close(); } catch (IOException ignore) {}
            }
            throw e;
        }
    }