@Test public void testGetApacheNames() { }
static public Set<String> getApacheNames(InputStream is) throws IOException, ArchiveException { Set<String> names = new HashSet<String>(); ArchiveInputStream ais = new ArchiveStreamFactory().createArchiveInputStream(is); ArchiveEntry entry; while ((entry = ais.getNextEntry()) != null) { if (!entry.isDirectory()) names.add(entry.getName()); } ais.close(); return names; }
ArchiveParser { static public Set<String> getApacheNames(InputStream is) throws IOException, ArchiveException { Set<String> names = new HashSet<String>(); ArchiveInputStream ais = new ArchiveStreamFactory().createArchiveInputStream(is); ArchiveEntry entry; while ((entry = ais.getNextEntry()) != null) { if (!entry.isDirectory()) names.add(entry.getName()); } ais.close(); return names; } }
ArchiveParser { static public Set<String> getApacheNames(InputStream is) throws IOException, ArchiveException { Set<String> names = new HashSet<String>(); ArchiveInputStream ais = new ArchiveStreamFactory().createArchiveInputStream(is); ArchiveEntry entry; while ((entry = ais.getNextEntry()) != null) { if (!entry.isDirectory()) names.add(entry.getName()); } ais.close(); return names; }  }
ArchiveParser { static public Set<String> getApacheNames(InputStream is) throws IOException, ArchiveException { Set<String> names = new HashSet<String>(); ArchiveInputStream ais = new ArchiveStreamFactory().createArchiveInputStream(is); ArchiveEntry entry; while ((entry = ais.getNextEntry()) != null) { if (!entry.isDirectory()) names.add(entry.getName()); } ais.close(); return names; }  static Set<String> getNames(InputStream is); static Set<String> getApacheNames(InputStream is); static InputStream getElementStream(InputStream is, String name); }
ArchiveParser { static public Set<String> getApacheNames(InputStream is) throws IOException, ArchiveException { Set<String> names = new HashSet<String>(); ArchiveInputStream ais = new ArchiveStreamFactory().createArchiveInputStream(is); ArchiveEntry entry; while ((entry = ais.getNextEntry()) != null) { if (!entry.isDirectory()) names.add(entry.getName()); } ais.close(); return names; }  static Set<String> getNames(InputStream is); static Set<String> getApacheNames(InputStream is); static InputStream getElementStream(InputStream is, String name);  }