Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.util.jar
Class JarFile.JarEnumeration  view JarFile.JarEnumeration download JarFile.JarEnumeration.java

java.lang.Object
  extended byjava.util.jar.JarFile.JarEnumeration
All Implemented Interfaces:
java.util.Enumeration
Enclosing class:
JarFile

private static class JarFile.JarEnumeration
extends java.lang.Object
implements java.util.Enumeration

Wraps a given Zip Entries Enumeration. For every zip entry a JarEntry is created and the corresponding Attributes are looked up.


Field Summary
private  java.util.Enumeration entries
           
private  JarFile jarfile
           
 
Constructor Summary
(package private) JarFile.JarEnumeration(java.util.Enumeration e, JarFile f)
           
 
Method Summary
 boolean hasMoreElements()
          Tests whether there are elements remaining in the enumeration.
 java.lang.Object nextElement()
          Obtain the next element in the enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entries

private final java.util.Enumeration entries

jarfile

private final JarFile jarfile
Constructor Detail

JarFile.JarEnumeration

JarFile.JarEnumeration(java.util.Enumeration e,
                       JarFile f)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Description copied from interface: java.util.Enumeration
Tests whether there are elements remaining in the enumeration.

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Description copied from interface: java.util.Enumeration
Obtain the next element in the enumeration.

Specified by:
nextElement in interface java.util.Enumeration