public class

ZipBrowserOracle

extends Object
implements IGenericZipBrowser
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.encoding.zip.ZipBrowserOracle

Class Overview

An implementation of a Zip browser that uses the standard JDK implementation.

Summary

Fields
public static final String[] csnamesTrylist Charset used (in descending priority order) by ZipBrowserOracle(File, Charset)
Public Constructors
ZipBrowserOracle(File f)
Open a zip archive and attempt to auto-detect character encoding for entry names.
ZipBrowserOracle(File f, Charset charset)
Open a zip archive and force the use of a given charset for entry names.
Public Methods
void close()
Map<String, GenericZipEntry<?>> getEntries()
GenericZipEntry<?> getEntry(String name)
InputStream getEntryStream(String name)
byte[] readEntry(String name)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.util.encoding.zip.IGenericZipBrowser
From interface java.lang.AutoCloseable

Fields

public static final String[] csnamesTrylist

Charset used (in descending priority order) by ZipBrowserOracle(File, Charset)

Public Constructors

public ZipBrowserOracle (File f)

Open a zip archive and attempt to auto-detect character encoding for entry names. (Currently, only the entries in csnamesTrylist are tried).

Throws
IOException

public ZipBrowserOracle (File f, Charset charset)

Open a zip archive and force the use of a given charset for entry names.

Throws
IOException

Public Methods

public void close ()

Throws
IOException

public Map<String, GenericZipEntry<?>> getEntries ()

public GenericZipEntry<?> getEntry (String name)

public InputStream getEntryStream (String name)

Throws
IOException

public byte[] readEntry (String name)

Throws
IOException