Example usage for org.apache.commons.compress.archivers.sevenz SevenZArchiveEntry hasStream

List of usage examples for org.apache.commons.compress.archivers.sevenz SevenZArchiveEntry hasStream

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.sevenz SevenZArchiveEntry hasStream.

Prototype

boolean hasStream

To view the source code for org.apache.commons.compress.archivers.sevenz SevenZArchiveEntry hasStream.

Click Source Link

Usage

From source file:com.izforge.izpack.util.compress.SevenZArchiveInputStream.java

@Override
public boolean canReadEntryData(ArchiveEntry archiveEntry) {
    if (archiveEntry instanceof SevenZArchiveEntry) {
        SevenZArchiveEntry entry = (SevenZArchiveEntry) archiveEntry;
        return entry.hasStream() && !entry.isAntiItem();
    }/*w  w w  .j  a  v  a 2  s.c  o  m*/

    return false;
}