public class

ZipFailSafeReader

extends Object
implements AutoCloseable
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.encoding.zip.fsr.ZipFailSafeReader

Class Overview

PNF Software's Zip Fail Safe Reader (PZFSR).

Attempt to handle the corner-cases that fail Oracle's and Apache Common's and only the corner cases. Plenty of common cases are/will not be handled by PZFSR (eg, zip64, uncommon flags or compression/encryption schemes, etc.)

Summary

Public Constructors
ZipFailSafeReader(File f)
ZipFailSafeReader(File f, boolean treatUnsupportedCompressionAsDeflate)
Public Methods
void close()
List<ZipEntry> getEntries()
ZipEntry getEntry(String filename)
int getNumberOfEntries()
int getOffsetAppendedData()
int getOffsetFirstEntry()
boolean hasAppendedData()
boolean hasEntry(String filename)
boolean hasPrependedData()
boolean isClosed()
boolean isTruncated()
ZipData readData(String filename)
ZipData readData(ZipEntry e)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

Public Constructors

public ZipFailSafeReader (File f)

Throws
IOException

public ZipFailSafeReader (File f, boolean treatUnsupportedCompressionAsDeflate)

Throws
IOException

Public Methods

public void close ()

Throws
IOException

public List<ZipEntry> getEntries ()

public ZipEntry getEntry (String filename)

public int getNumberOfEntries ()

public int getOffsetAppendedData ()

public int getOffsetFirstEntry ()

public boolean hasAppendedData ()

public boolean hasEntry (String filename)

public boolean hasPrependedData ()

public boolean isClosed ()

public boolean isTruncated ()

public ZipData readData (String filename)

Throws
IOException

public ZipData readData (ZipEntry e)

Throws
IOException

public String toString ()