MCPcopy Create free account
hub / github.com/ReadyTalk/avian / MyEnumeration

Class MyEnumeration

classpath/java/util/zip/ZipFile.java:332–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 private static class MyEnumeration implements Enumeration<ZipEntry> {
333 private final EntryFactory factory;
334 private final Window window;
335 private final Iterator<Integer> iterator;
336
337 public MyEnumeration(EntryFactory factory, Window window,
338 Iterator<Integer> iterator)
339 {
340 this.factory = factory;
341 this.window = window;
342 this.iterator = iterator;
343 }
344
345 public boolean hasMoreElements() {
346 return iterator.hasNext();
347 }
348
349 public ZipEntry nextElement() {
350 return factory.makeEntry(window, iterator.next());
351 }
352 }
353
354 private static class MyInputStream extends InputStream {
355 private RandomAccessFile file;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected