private Reader getReader()

in maven-jxr/src/main/java/org/apache/maven/jxr/pacman/JavaFileImpl.java [162:172]


    private Reader getReader() throws IOException {
        if (Files.notExists(this.getPath())) {
            throw new IOException(this.getPath() + " does not exist!");
        }

        if (this.getEncoding() != null) {
            return new InputStreamReader(new FileInputStream(this.getPath().toFile()), this.getEncoding());
        } else {
            return new FileReader(this.getPath().toFile());
        }
    }