Example usage for org.apache.commons.compress.archivers.tar TarArchiveEntry equals

List of usage examples for org.apache.commons.compress.archivers.tar TarArchiveEntry equals

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.tar TarArchiveEntry equals.

Prototype

public boolean equals(Object it) 

Source Link

Document

Determine if the two entries are equal.

Usage

From source file:org.eclipse.tracecompass.internal.tmf.ui.project.wizards.importtrace.TarFile.java

private static boolean skipToEntry(TarArchiveInputStream entryStream, TarArchiveEntry entry)
        throws IOException {
    TarArchiveEntry e = entryStream.getNextTarEntry();
    while (e != null) {
        if (e.equals(entry)) {
            return true;
        }/*from   w w  w . ja  va 2 s  . com*/

        e = entryStream.getNextTarEntry();
    }

    return false;
}