20262027202820292030203120322033203420352036
return font; Path path = env.lookupPwd(fontPath); if (path.canRead()) { ReadStream is = path.openRead(); try { font = Font.createFont(Font.TRUETYPE_FONT, is); } finally { is.close();
20692070207120722073207420752076207720782079
start = len; } if (path.canRead()) { ReadStream is = path.openRead(); try { font = Font.createFont(Font.TRUETYPE_FONT, is); } finally { is.close();
885886887888889890891892893894895
try { Path path = env.getPwd().lookup(value.toString()); if (path.exists()) { in = path.openRead(); StringBuilder sb = new StringBuilder(); int ch; while ((ch = in.read()) >= 0) {
638639640641642643644645646647648
env.warning(L.l("Cannot read file/URL '{0}'", data)); return null; } ReadStream is = path.openRead(); try { document = builder.parse(is); } finally { is.close();
320321322323324325326327328329330
Path sub = _pwd.lookup(uri); ReadStream is = null; try { is = sub.openRead(); InputSource source = new InputSource(is); source.setSystemId(uri); CompactParser parser = new CompactParser();
4950515253545556575859
public Schema compileSchema(String url) throws SAXException, IOException { Path path = Vfs.lookup(url); ReadStream is = path.openRead(); try { InputSource source = new InputSource(is); source.setSystemId(url); return compileSchema(source);
7475767778798081828384
public boolean verify(String url) throws IOException, SAXException { Path path = Vfs.lookup(url); ReadStream is = path.openRead(); try { Xml xml = new Xml(); VerifierHandler handler = getVerifierHandler();
402403404405406407408409410411412
manifestPath = jar.lookup("META-INF/MANIFEST.MF"); contextPath = path.getParent(); } if (manifestPath.canRead()) { ReadStream is = manifestPath.openRead(); try { Manifest manifest = new Manifest(is); Attributes main = manifest.getMainAttributes();
182183184185186187188189190191192
path = getPath(name); if (path != null && path.canRead()) { try { return path.openRead(); } catch (Exception e) { } } return null;
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++;