@Override public InputStream getStream() throws IOException { InputStream in = null; try { in = parent.getJar().getStream(); ZipInputStream zIn = new ZipInputStream(in); ZipEntry ze = zIn.getNextEntry(); while (ze != null) { if (ze.getName().equals(entry)) return zIn; ze = zIn.getNextEntry(); } } catch (IOException e) { e.printStackTrace(); in.close(); } return null; }
@Override public String asURLString() { return parent.asURLString() + "!" + entry; }