com.ice.tar

Class TarEntryEnumerator

Implemented Interfaces:
Enumeration

public class TarEntryEnumerator
extends Object
implements Enumeration

Enumerate the contents of a "tar" file. Last updated 26th Mar 1999.
Version:
Version 1.0 Mar 1999
Author:
David. M. Gaskin.
Since:
Version 1.0

Constructor Summary

TarEntryEnumerator(TarInputStream tis)
Construct an instance given a TarInputStream.

Method Summary

boolean
hasMoreElements()
Return true if there are more elements in the enumeration.
Object
nextElement()
Return the next element in the enumeration.

Constructor Details

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:

Method Details

hasMoreElements

public boolean hasMoreElements()
Return true if there are more elements in the enumeration.
Returns:
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.
Returns:
the next Object in the enumeration

This software has been placed into the public domain.