@Override public InputStream getInputStream(String name) throws IOException { try (ReferenceCountedJar jar = open()) { return jar.wrappedJar.getInputStream(name); } }
public static BufferedInputStream getInputStream(String fname, Jar jar, JspCompilationContext ctxt) throws IOException { InputStream in = null; if (jar != null) { String jarEntryName = fname.substring(1, fname.length()); in = jar.getInputStream(jarEntryName); } else { in = ctxt.getResourceAsStream(fname); } if (in == null) { throw new FileNotFoundException(Localizer.getMessage( "jsp.error.file.not.found", fname)); } return new BufferedInputStream(in, JspUtil.JSP_INPUT_STREAM_BUFFER_SIZE); }
public static InputSource getInputSource(String fname, Jar jar, JspCompilationContext ctxt) throws IOException { InputSource source; if (jar != null) { String jarEntryName = fname.substring(1, fname.length()); source = new InputSource(jar.getInputStream(jarEntryName)); source.setSystemId(jar.getURL(jarEntryName)); } else { source = new InputSource(ctxt.getResourceAsStream(fname)); source.setSystemId(ctxt.getResource(fname).toExternalForm()); } return source; }
is = tagJar.getInputStream(entryName); this.jspFileName = tagJar.getURL(entryName); } else {
try (Jar jar = JarFactory.newInstance(new URL(key.substring(4, entryStart)))) { if (isOutdated(key, jar.getInputStream(entry))) return true;
is = jar.getInputStream(FRAGMENT_LOCATION);
is = jar.getInputStream(FRAGMENT_LOCATION);