317318319320321322323324325326327
Path rootDirectory = getRootDirectory(); Path path = rootDirectory.lookupNative(getRealPath(uripath)); try { if (path.canRead()) return path.openRead(); else return null; } catch (IOException e) { log.log(Level.FINEST, e.toString(), e);
105106107108109110111112113114115
byte []buffer = new byte[length]; try { ReadStream is = null; try { is = path.openRead(); is.readAll(buffer, 0, buffer.length); Class<?> cl = defineClass(name, buffer, 0, buffer.length, (CodeSource) null);
120121122123124125126127128129130
out.print("</code>"); out.println("<p>"); ReadStream is; try { is = path.openRead(); } catch (java.io.FileNotFoundException ex) { out.println("<font color='red'><b>File not found: " + Html.escapeHtml(path.getPath()) + "</b></font>"); out.println("</body>"); out.println("</html>"); return;
279280281282283284285286287288289
expandArchiveImpl(); } Path path = getRootDirectory().lookup("META-INF/MANIFEST.MF"); if (path.canRead()) { ReadStream is = path.openRead(); try { _manifest = new Manifest(is); } catch (IOException e) { log.warning(L.l("Manifest file cannot be read for '{0}'.\n{1}", getRootDirectory(), e));
398399400401402403404405406407408
// XXX: change to a hash if (dependPath.canRead()) { ReadStream is = null; try { is = dependPath.openRead(); String line = is.readLine(); long digest;
249250251252253254255256257258259
childArgs[childArgs.length - 1] = name; argMap.put("arguments", childArgs); argMap.put("File", Vfs.lookup()); ReadStream is = xmlPath.openRead(); Document doc = null; try { if (isStrict) doc = new Xml().parseDocument(is); else {
723724725726727728729730731732733
try { Path path = Vfs.lookup().lookup(filename); StringBuilder sb = new StringBuilder("\n\n"); is = path.openRead(); int line = 0; String text; while ((text = is.readLine()) != null) { line++;
5152535455565758596061
HandlerBase base = (HandlerBase) objBase; if (obj instanceof InputStream) parser.parse((InputStream) obj, base); else if (obj instanceof Path) { Path path = (Path) obj; ReadStream is = path.openRead(); try { parser.parse(is, base); } finally { is.close(); }
7071727374757677787980
DefaultHandler base = (DefaultHandler) objBase; if (obj instanceof InputStream) parser.parse((InputStream) obj, base); else if (obj instanceof Path) { Path path = (Path) obj; ReadStream is = path.openRead(); try { parser.parse(is, base); } finally { is.close(); }
5051525354555657585960
if (obj instanceof InputStream) return parser.parse((InputStream) obj, systemId); else if (obj instanceof Path) { Path path = (Path) obj; ReadStream is = path.openRead(); try { return parser.parse(is); } finally { is.close(); }