Returns the number of entries in this zip file. @exception IllegalStateException when the ZipFile has already been closed
()
| 477 | * @exception IllegalStateException when the ZipFile has already been closed |
| 478 | */ |
| 479 | public int size() |
| 480 | { |
| 481 | checkClosed(); |
| 482 | |
| 483 | try |
| 484 | { |
| 485 | return getEntries().size(); |
| 486 | } |
| 487 | catch (IOException ioe) |
| 488 | { |
| 489 | return 0; |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | // private static class ZipEntryEnumeration implements Enumeration<ZipEntry> |
| 494 | // { |
nothing calls this directly
no test coverage detected