com.ice.tar
Class TarEntryEnumerator
java.lang.Object
|
+--com.ice.tar.TarEntryEnumerator
- All Implemented Interfaces:
- Enumeration
- public class TarEntryEnumerator
- extends Object
- implements Enumeration
Enumerate the contents of a "tar" file.
Last updated 26th Mar 1999.
- Since:
- Version 1.0
- Version:
- Version 1.0 Mar 1999
- Author:
- David. M. Gaskin.
Method Summary |
boolean |
hasMoreElements()
Return true if there are more elements in the enumeration. |
Object |
nextElement()
Return the next element in the enumeration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
- Parameters:
tis
- the TarInputStream on which this enumeration has
to be based.
nextElement
public Object nextElement()
throws NoSuchElementException
- Return the next element in the enumeration. This is a required method
for implementing java.util.Enumeration.
- Specified by:
nextElement
in interface Enumeration
- Returns:
- the next Object in the enumeration
- Throws:
NoSuchElementException
- should an attempt be made to
read beyond EOF
hasMoreElements
public boolean hasMoreElements()
- Return true if there are more elements in the enumeration.
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
- true if there are more elements in the enumeration.
This software has been placed into the public domain.