public class TarEntryEnumerator extends Object implements Enumeration
Modifier and Type | Field and Description |
---|---|
private boolean |
eof
Has EndOfFile been reached?
|
private TarEntry |
readAhead
The read ahead entry (or null if no read ahead exists)
|
private TarInputStream |
tis
The instance on which the enumeration works.
|
Constructor and Description |
---|
TarEntryEnumerator(TarInputStream tis)
Construct an instance given a TarInputStream.
|
Modifier and Type | Method and Description |
---|---|
private TarEntry |
getNext()
Return the next element of null if there is no next element or
if an error occured.
|
boolean |
hasMoreElements()
Return true if there are more elements in the enumeration.
|
Object |
nextElement()
Return the next element in the enumeration.
|
private TarInputStream tis
private boolean eof
public TarEntryEnumerator(TarInputStream tis)
tis
- the TarInputStream on which this enumeration has
to be based.public Object nextElement() throws NoSuchElementException
nextElement
in interface Enumeration
NoSuchElementException
- should an attempt be made to
read beyond EOFNoSuchElementException
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses