123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!-- NewPage -->
- <html lang="de">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>ZipFile (Apache Commons Compress 1.13 API)</title>
- <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
- </head>
- <body>
- <script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="ZipFile (Apache Commons Compress 1.13 API)";
- }
- }
- catch(err) {
- }
- //-->
- </script>
- <noscript>
- <div>JavaScript is disabled on your browser.</div>
- </noscript>
- <!-- ========= START OF TOP NAVBAR ======= -->
- <div class="topNav"><a name="navbar_top">
- <!-- -->
- </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../../../../../../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="class-use/ZipFile.html">Use</a></li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
- <li><a href="../../../../../../index-all.html">Index</a></li>
- <li><a href="../../../../../../help-doc.html">Help</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
- <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/ZipFile.html" target="_top">Frames</a></li>
- <li><a href="ZipFile.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_top">
- <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li>Field | </li>
- <li><a href="#constructor_summary">Constr</a> | </li>
- <li><a href="#method_summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li>Field | </li>
- <li><a href="#constructor_detail">Constr</a> | </li>
- <li><a href="#method_detail">Method</a></li>
- </ul>
- </div>
- <a name="skip-navbar_top">
- <!-- -->
- </a></div>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <!-- ======== START OF CLASS DATA ======== -->
- <div class="header">
- <div class="subTitle">org.apache.commons.compress.archivers.zip</div>
- <h2 title="Class ZipFile" class="title">Class ZipFile</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
- <li>
- <ul class="inheritance">
- <li>org.apache.commons.compress.archivers.zip.ZipFile</li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <dl>
- <dt>All Implemented Interfaces:</dt>
- <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></dd>
- </dl>
- <hr>
- <br>
- <pre>public class <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.83">ZipFile</a>
- extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
- implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></pre>
- <div class="block">Replacement for <code>java.util.ZipFile</code>.
- <p>This class adds support for file name encodings other than UTF-8
- (which is required to work on ZIP files created by native zip tools
- and is able to skip a preamble like the one found in self
- extracting archives. Furthermore it returns instances of
- <code>org.apache.commons.compress.archivers.zip.ZipArchiveEntry</code>
- instead of <code>java.util.zip.ZipEntry</code>.</p>
- <p>It doesn't extend <code>java.util.zip.ZipFile</code> as it would
- have to reimplement all methods anyway. Like
- <code>java.util.ZipFile</code>, it uses SeekableByteChannel under the
- covers and supports compressed and uncompressed entries. As of
- Apache Commons Compress 1.3 it also transparently supports Zip64
- extensions and thus individual entries and archives larger than 4
- GB or with more than 65536 entries.</p>
- <p>The method signatures mimic the ones of
- <code>java.util.zip.ZipFile</code>, with a couple of exceptions:
- <ul>
- <li>There is no getName method.</li>
- <li>entries has been renamed to getEntries.</li>
- <li>getEntries and getEntry return
- <code>org.apache.commons.compress.archivers.zip.ZipArchiveEntry</code>
- instances.</li>
- <li>close is allowed to throw IOException.</li>
- </ul></div>
- </li>
- </ul>
- </div>
- <div class="summary">
- <ul class="blockList">
- <li class="blockList">
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor_summary">
- <!-- -->
- </a>
- <h3>Constructor Summary</h3>
- <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
- <caption><span>Constructors</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colOne" scope="col">Constructor and Description</th>
- </tr>
- <tr class="altColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.io.File)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</code>
- <div class="block">Opens the given file for reading, assuming "UTF8" for file names.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.io.File,%20java.lang.String)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding)</code>
- <div class="block">Opens the given file for reading, assuming the specified
- encoding for file names and scanning for unicode extra fields.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.io.File,%20java.lang.String,%20boolean)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding,
- boolean useUnicodeExtraFields)</code>
- <div class="block">Opens the given file for reading, assuming the specified
- encoding for file names.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.nio.channels.SeekableByteChannel)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/SeekableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">SeekableByteChannel</a> channel)</code>
- <div class="block">Opens the given channel for reading, assuming "UTF8" for file names.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.nio.channels.SeekableByteChannel,%20java.lang.String)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/SeekableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">SeekableByteChannel</a> channel,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding)</code>
- <div class="block">Opens the given channel for reading, assuming the specified
- encoding for file names.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.nio.channels.SeekableByteChannel,%20java.lang.String,%20java.lang.String,%20boolean)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/SeekableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">SeekableByteChannel</a> channel,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> archiveName,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding,
- boolean useUnicodeExtraFields)</code>
- <div class="block">Opens the given channel for reading, assuming the specified
- encoding for file names.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.lang.String)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
- <div class="block">Opens the given file for reading, assuming "UTF8".</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#ZipFile(java.lang.String,%20java.lang.String)">ZipFile</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding)</code>
- <div class="block">Opens the given file for reading, assuming the specified
- encoding for file names, scanning unicode extra fields.</div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ========== METHOD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method_summary">
- <!-- -->
- </a>
- <h3>Method Summary</h3>
- <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
- <caption><span>Methods</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colFirst" scope="col">Modifier and Type</th>
- <th class="colLast" scope="col">Method and Description</th>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#canReadEntryData(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">canReadEntryData</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> ze)</code>
- <div class="block">Whether this class is able to read the given entry.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#close()">close</a></strong>()</code>
- <div class="block">Closes the archive.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static void</code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#closeQuietly(org.apache.commons.compress.archivers.zip.ZipFile)">closeQuietly</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html" title="class in org.apache.commons.compress.archivers.zip">ZipFile</a> zipfile)</code>
- <div class="block">close a zipfile quietly; throw no io fault, do nothing
- on a null parameter</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#copyRawEntries(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream,%20org.apache.commons.compress.archivers.zip.ZipArchiveEntryPredicate)">copyRawEntries</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveOutputStream</a> target,
- <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntryPredicate.html" title="interface in org.apache.commons.compress.archivers.zip">ZipArchiveEntryPredicate</a> predicate)</code>
- <div class="block">Transfer selected entries from this zipfile to a given #ZipArchiveOutputStream.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>protected void</code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#finalize()">finalize</a></strong>()</code>
- <div class="block">Ensures that the close method of this zipfile is called when
- there are no more references to it.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getEncoding()">getEncoding</a></strong>()</code>
- <div class="block">The encoding to use for filenames and the file comment.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getEntries()">getEntries</a></strong>()</code>
- <div class="block">Returns all entries.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getEntries(java.lang.String)">getEntries</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
- <div class="block">Returns all named entries in the same order they appear within
- the archive's central directory.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getEntriesInPhysicalOrder()">getEntriesInPhysicalOrder</a></strong>()</code>
- <div class="block">Returns all entries in physical order.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getEntriesInPhysicalOrder(java.lang.String)">getEntriesInPhysicalOrder</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
- <div class="block">Returns all named entries in the same order their contents
- appear within the archive.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getEntry(java.lang.String)">getEntry</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
- <div class="block">Returns a named entry - or <code>null</code> if no entry by
- that name exists.</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">getInputStream</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> ze)</code>
- <div class="block">Returns an InputStream for reading the contents of the given entry.</div>
- </td>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getRawInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">getRawInputStream</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> ze)</code>
- <div class="block">Expose the raw stream of the archive entry (compressed form).</div>
- </td>
- </tr>
- <tr class="rowColor">
- <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
- <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#getUnixSymlink(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">getUnixSymlink</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> entry)</code>
- <div class="block">
- Convenience method to return the entry's content as a String if isUnixSymlink()
- returns true for it, otherwise returns null.</div>
- </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
- <!-- -->
- </a>
- <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
- <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div class="details">
- <ul class="blockList">
- <li class="blockList">
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor_detail">
- <!-- -->
- </a>
- <h3>Constructor Detail</h3>
- <a name="ZipFile(java.io.File)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.160">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given file for reading, assuming "UTF8" for file names.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - the archive.</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.171">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given file for reading, assuming "UTF8".</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - name of the archive.</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.lang.String, java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.185">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given file for reading, assuming the specified
- encoding for file names, scanning unicode extra fields.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - name of the archive.</dd><dd><code>encoding</code> - the encoding to use for file names, use null
- for the platform's default encoding</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.io.File, java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.199">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given file for reading, assuming the specified
- encoding for file names and scanning for unicode extra fields.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - the archive.</dd><dd><code>encoding</code> - the encoding to use for file names, use null
- for the platform's default encoding</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.io.File, java.lang.String, boolean)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.215">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding,
- boolean useUnicodeExtraFields)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given file for reading, assuming the specified
- encoding for file names.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>f</code> - the archive.</dd><dd><code>encoding</code> - the encoding to use for file names, use null
- for the platform's default encoding</dd><dd><code>useUnicodeExtraFields</code> - whether to use InfoZIP Unicode
- Extra Fields (if present) to set the file names.</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.nio.channels.SeekableByteChannel)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.233">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/SeekableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">SeekableByteChannel</a> channel)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given channel for reading, assuming "UTF8" for file names.
- <p><a href="../../../../../../org/apache/commons/compress/utils/SeekableInMemoryByteChannel.html" title="class in org.apache.commons.compress.utils"><code>SeekableInMemoryByteChannel</code></a>
- allows you to read from an in-memory archive.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>channel</code> - the archive.</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.13</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.nio.channels.SeekableByteChannel, java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.253">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/SeekableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">SeekableByteChannel</a> channel,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given channel for reading, assuming the specified
- encoding for file names.
- <p><a href="../../../../../../org/apache/commons/compress/utils/SeekableInMemoryByteChannel.html" title="class in org.apache.commons.compress.utils"><code>SeekableInMemoryByteChannel</code></a>
- allows you to read from an in-memory archive.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>channel</code> - the archive.</dd><dd><code>encoding</code> - the encoding to use for file names, use null
- for the platform's default encoding</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.13</dd></dl>
- </li>
- </ul>
- <a name="ZipFile(java.nio.channels.SeekableByteChannel, java.lang.String, java.lang.String, boolean)">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>ZipFile</h4>
- <pre>public <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.276">ZipFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/SeekableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">SeekableByteChannel</a> channel,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> archiveName,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> encoding,
- boolean useUnicodeExtraFields)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Opens the given channel for reading, assuming the specified
- encoding for file names.
- <p><a href="../../../../../../org/apache/commons/compress/utils/SeekableInMemoryByteChannel.html" title="class in org.apache.commons.compress.utils"><code>SeekableInMemoryByteChannel</code></a>
- allows you to read from an in-memory archive.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>channel</code> - the archive.</dd><dd><code>archiveName</code> - name of the archive, used for error messages only.</dd><dd><code>encoding</code> - the encoding to use for file names, use null
- for the platform's default encoding</dd><dd><code>useUnicodeExtraFields</code> - whether to use InfoZIP Unicode
- Extra Fields (if present) to set the file names.</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs while reading the file.</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.13</dd></dl>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method_detail">
- <!-- -->
- </a>
- <h3>Method Detail</h3>
- <a name="getEncoding()">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEncoding</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.310">getEncoding</a>()</pre>
- <div class="block">The encoding to use for filenames and the file comment.</div>
- <dl><dt><span class="strong">Returns:</span></dt><dd>null if using the platform's default character encoding.</dd></dl>
- </li>
- </ul>
- <a name="close()">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>close</h4>
- <pre>public void <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.319">close</a>()
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Closes the archive.</div>
- <dl>
- <dt><strong>Specified by:</strong></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
- <dt><strong>Specified by:</strong></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang">close</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an error occurs closing the archive.</dd></dl>
- </li>
- </ul>
- <a name="closeQuietly(org.apache.commons.compress.archivers.zip.ZipFile)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>closeQuietly</h4>
- <pre>public static void <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.333">closeQuietly</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html" title="class in org.apache.commons.compress.archivers.zip">ZipFile</a> zipfile)</pre>
- <div class="block">close a zipfile quietly; throw no io fault, do nothing
- on a null parameter</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>zipfile</code> - file to close, can be null</dd></dl>
- </li>
- </ul>
- <a name="getEntries()">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEntries</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.345">getEntries</a>()</pre>
- <div class="block">Returns all entries.
- <p>Entries will be returned in the same order they appear
- within the archive's central directory.</p></div>
- <dl><dt><span class="strong">Returns:</span></dt><dd>all entries as <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip"><code>ZipArchiveEntry</code></a> instances</dd></dl>
- </li>
- </ul>
- <a name="getEntriesInPhysicalOrder()">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEntriesInPhysicalOrder</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.359">getEntriesInPhysicalOrder</a>()</pre>
- <div class="block">Returns all entries in physical order.
- <p>Entries will be returned in the same order their contents
- appear within the archive.</p></div>
- <dl><dt><span class="strong">Returns:</span></dt><dd>all entries as <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip"><code>ZipArchiveEntry</code></a> instances</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.1</dd></dl>
- </li>
- </ul>
- <a name="getEntry(java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEntry</h4>
- <pre>public <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.377">getEntry</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
- <div class="block">Returns a named entry - or <code>null</code> if no entry by
- that name exists.
- <p>If multiple entries with the same name exist the first entry
- in the archive's central directory by that name is
- returned.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - name of the entry.</dd>
- <dt><span class="strong">Returns:</span></dt><dd>the ZipArchiveEntry corresponding to the given name - or
- <code>null</code> if not present.</dd></dl>
- </li>
- </ul>
- <a name="getEntries(java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEntries</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.391">getEntries</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
- <div class="block">Returns all named entries in the same order they appear within
- the archive's central directory.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - name of the entry.</dd>
- <dt><span class="strong">Returns:</span></dt><dd>the Iterable<ZipArchiveEntry> corresponding to the
- given name</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.6</dd></dl>
- </li>
- </ul>
- <a name="getEntriesInPhysicalOrder(java.lang.String)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getEntriesInPhysicalOrder</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a>> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.406">getEntriesInPhysicalOrder</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
- <div class="block">Returns all named entries in the same order their contents
- appear within the archive.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - name of the entry.</dd>
- <dt><span class="strong">Returns:</span></dt><dd>the Iterable<ZipArchiveEntry> corresponding to the
- given name</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.6</dd></dl>
- </li>
- </ul>
- <a name="canReadEntryData(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>canReadEntryData</h4>
- <pre>public boolean <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.424">canReadEntryData</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> ze)</pre>
- <div class="block">Whether this class is able to read the given entry.
- <p>May return false if it is set up to use encryption or a
- compression method that hasn't been implemented yet.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>ze</code> - the entry</dd>
- <dt><span class="strong">Returns:</span></dt><dd>whether this class is able to read the given entry.</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.1</dd></dl>
- </li>
- </ul>
- <a name="getRawInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getRawInputStream</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.438">getRawInputStream</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> ze)</pre>
- <div class="block">Expose the raw stream of the archive entry (compressed form).
- <p>This method does not relate to how/if we understand the payload in the
- stream, since we really only intend to move it on to somewhere else.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>ze</code> - The entry to get the stream for</dd>
- <dt><span class="strong">Returns:</span></dt><dd>The raw input stream containing (possibly) compressed data.</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.11</dd></dl>
- </li>
- </ul>
- <a name="copyRawEntries(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream, org.apache.commons.compress.archivers.zip.ZipArchiveEntryPredicate)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>copyRawEntries</h4>
- <pre>public void <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.457">copyRawEntries</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveOutputStream</a> target,
- <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntryPredicate.html" title="interface in org.apache.commons.compress.archivers.zip">ZipArchiveEntryPredicate</a> predicate)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block">Transfer selected entries from this zipfile to a given #ZipArchiveOutputStream.
- Compression and all other attributes will be as in this file.
- <p>This method transfers entries based on the central directory of the zip file.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - The zipArchiveOutputStream to write the entries to</dd><dd><code>predicate</code> - A predicate that selects which entries to write</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - on error</dd></dl>
- </li>
- </ul>
- <a name="getInputStream(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getInputStream</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.476">getInputStream</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> ze)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
- <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipException.html?is-external=true" title="class or interface in java.util.zip">ZipException</a></pre>
- <div class="block">Returns an InputStream for reading the contents of the given entry.</div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>ze</code> - the entry to get the stream for.</dd>
- <dt><span class="strong">Returns:</span></dt><dd>a stream to read the entry from.</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if unable to create an input stream from the zipentry</dd>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipException.html?is-external=true" title="class or interface in java.util.zip">ZipException</a></code> - if the zipentry uses an unsupported feature</dd></dl>
- </li>
- </ul>
- <a name="getUnixSymlink(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>getUnixSymlink</h4>
- <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.544">getUnixSymlink</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html" title="class in org.apache.commons.compress.archivers.zip">ZipArchiveEntry</a> entry)
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
- <div class="block"><p>
- Convenience method to return the entry's content as a String if isUnixSymlink()
- returns true for it, otherwise returns null.
- </p>
- <p>This method assumes the symbolic link's file name uses the
- same encoding that as been specified for this ZipFile.</p></div>
- <dl><dt><span class="strong">Parameters:</span></dt><dd><code>entry</code> - ZipArchiveEntry object that represents the symbolic link</dd>
- <dt><span class="strong">Returns:</span></dt><dd>entry's content as a String</dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - problem with content's input stream</dd><dt><span class="strong">Since:</span></dt>
- <dd>1.5</dd></dl>
- </li>
- </ul>
- <a name="finalize()">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>finalize</h4>
- <pre>protected void <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipFile.html#line.559">finalize</a>()
- throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></pre>
- <div class="block">Ensures that the close method of this zipfile is called when
- there are no more references to it.</div>
- <dl>
- <dt><strong>Overrides:</strong></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
- <dt><span class="strong">Throws:</span></dt>
- <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html#close()"><code>close()</code></a></dd></dl>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- <!-- ========= END OF CLASS DATA ========= -->
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <div class="bottomNav"><a name="navbar_bottom">
- <!-- -->
- </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="Navigation">
- <li><a href="../../../../../../overview-summary.html">Overview</a></li>
- <li><a href="package-summary.html">Package</a></li>
- <li class="navBarCell1Rev">Class</li>
- <li><a href="class-use/ZipFile.html">Use</a></li>
- <li><a href="package-tree.html">Tree</a></li>
- <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
- <li><a href="../../../../../../index-all.html">Index</a></li>
- <li><a href="../../../../../../help-doc.html">Help</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
- <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/ZipFile.html" target="_top">Frames</a></li>
- <li><a href="ZipFile.html" target="_top">No Frames</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_bottom">
- <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>Summary: </li>
- <li>Nested | </li>
- <li>Field | </li>
- <li><a href="#constructor_summary">Constr</a> | </li>
- <li><a href="#method_summary">Method</a></li>
- </ul>
- <ul class="subNavList">
- <li>Detail: </li>
- <li>Field | </li>
- <li><a href="#constructor_detail">Constr</a> | </li>
- <li><a href="#method_detail">Method</a></li>
- </ul>
- </div>
- <a name="skip-navbar_bottom">
- <!-- -->
- </a></div>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <p class="legalCopy"><small>Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
- </body>
- </html>
|