src/main/java/org/codehaus/plexus/archiver/tar/TarFile.java
public Enumeration<org.apache.commons.compress.archivers.ArchiveEntry> getEntries()
        throws IOException
    {
        if ( inputStream != null )
        {
            close();
        }
        open();
        return new Enumeration<org.apache.commons.compress.archivers.ArchiveEntry>()
        {
            boolean currentEntryValid;

            public boolean hasMoreElements()
            {
                if ( !currentEntryValid )
                {
                    try
                    {
                        currentEntry = inputStream.getNextTarEntry();
                    }
                    catch ( IOException  e )
                    {
                        throw new UndeclaredThrowableException( e );
                    }
                }
                return currentEntry != null;
            }

            public org.apache.commons.compress.archivers.ArchiveEntry nextElement()
            {
                if ( currentEntry == null )
                {
                    throw new NoSuchElementException();
                }
                currentEntryValid = false;
                return currentEntry;
            }
        };
    }
public Enumeration<org.apache.commons.compress.archivers.ArchiveEntry> getEntries()
        throws IOException
    {
        if ( inputStream != null )
        {
            close();
        }
        open();
        return new Enumeration<org.apache.commons.compress.archivers.ArchiveEntry>()
        {
            boolean currentEntryValid;

            public boolean hasMoreElements()
            {
                if ( !currentEntryValid )
                {
                    try
                    {
                        currentEntry = inputStream.getNextTarEntry();
                    }
                    catch ( IOException  e )
                    {
                        throw new UndeclaredThrowableException( e );
                    }
                }
                return currentEntry != null;
            }

            public org.apache.commons.compress.archivers.ArchiveEntry nextElement()
            {
                if ( currentEntry == null )
                {
                    throw new NoSuchElementException();
                }
                currentEntryValid = false;
                return currentEntry;
            }
        };
    }
Implementation of {@link ArchiveFile#getEntries()}. Note, that there is
an interaction between this method and {@link #getInputStream(TarArchiveEntry)},
or {@link #getInputStream(org.apache.commons.compress.archivers.ArchiveEntry)}:
If an input stream is opened for any other entry than the enumerations
current entry, then entries may be skipped.