| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected