public InputStream openSource(SourceLineAnnotation source) throws IOException { SourceFile sourceFile = findSourceFile(source); return sourceFile.getInputStream(); }
/** * Open an input stream on a source file in given package. * * @param packageName the name of the package containing the class whose source file is given * @param fileName the unqualified name of the source file * @return an InputStream on the source file * @throws IOException if a matching source file cannot be found */ public InputStream openSource(String packageName, String fileName) throws IOException { SourceFile sourceFile = findSourceFile(packageName, fileName); return sourceFile.getInputStream(); }