public Reader getSource()

in src/main/java/org/apache/sling/scripting/java/impl/CompilationUnit.java [48:62]


    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;
        }
    }