com.ice.tar
Class TarEntryEnumerator
- Enumeration
public class TarEntryEnumerator
implements Enumeration
Enumerate the contents of a "tar" file.
Last updated 26th Mar 1999.
boolean | hasMoreElements() - Return true if there are more elements in the enumeration.
|
Object | nextElement() - Return the next element in the enumeration.
|
TarEntryEnumerator
public TarEntryEnumerator(TarInputStream tis)
Construct an instance given a TarInputStream. This method is package
private because it is not initially forseen that an instance of this class
should be constructed from outside the package. Should it become necessary
to construct an instance of this class from outside the package in which it
exists then the constructor should be made protected and an empty
subclass should be written in the other package.
hasMoreElements
public boolean hasMoreElements()
Return true if there are more elements in the enumeration.
- true if there are more elements in the enumeration.
nextElement
public Object nextElement()
throws NoSuchElementException
Return the next element in the enumeration. This is a required method
for implementing java.util.Enumeration.
- the next Object in the enumeration
This software has been placed into the public domain.