コード例 #1
0
 @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;
 }
コード例 #2
0
 @Override
 public String asURLString() {
   return parent.asURLString() + "!" + entry;
 }