1 |
967b6b05
|
horkmi
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2 |
|
|
<!-- NewPage -->
|
3 |
|
|
<html lang="cs">
|
4 |
|
|
<head>
|
5 |
|
|
<!-- Generated by javadoc (1.8.0_45) on Thu May 07 16:47:37 CEST 2020 -->
|
6 |
|
|
<title>ZipInStream</title>
|
7 |
|
|
<meta name="date" content="2020-05-07">
|
8 |
|
|
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
9 |
|
|
<script type="text/javascript" src="../script.js"></script>
|
10 |
|
|
</head>
|
11 |
|
|
<body>
|
12 |
|
|
<script type="text/javascript"><!--
|
13 |
|
|
try {
|
14 |
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
15 |
|
|
parent.document.title="ZipInStream";
|
16 |
|
|
}
|
17 |
|
|
}
|
18 |
|
|
catch(err) {
|
19 |
|
|
}
|
20 |
|
|
//-->
|
21 |
|
|
var methods = {"i0":10,"i1":10};
|
22 |
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
23 |
|
|
var altColor = "altColor";
|
24 |
|
|
var rowColor = "rowColor";
|
25 |
|
|
var tableTab = "tableTab";
|
26 |
|
|
var activeTableTab = "activeTableTab";
|
27 |
|
|
</script>
|
28 |
|
|
<noscript>
|
29 |
|
|
<div>JavaScript is disabled on your browser.</div>
|
30 |
|
|
</noscript>
|
31 |
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
32 |
|
|
<div class="topNav"><a name="navbar.top">
|
33 |
|
|
<!-- -->
|
34 |
|
|
</a>
|
35 |
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
36 |
|
|
<a name="navbar.top.firstrow">
|
37 |
|
|
<!-- -->
|
38 |
|
|
</a>
|
39 |
|
|
<ul class="navList" title="Navigation">
|
40 |
|
|
<li><a href="../overview-summary.html">Overview</a></li>
|
41 |
|
|
<li><a href="package-summary.html">Package</a></li>
|
42 |
|
|
<li class="navBarCell1Rev">Class</li>
|
43 |
|
|
<li><a href="class-use/ZipInStream.html">Use</a></li>
|
44 |
|
|
<li><a href="package-tree.html">Tree</a></li>
|
45 |
|
|
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
46 |
|
|
<li><a href="../index-files/index-1.html">Index</a></li>
|
47 |
|
|
<li><a href="../help-doc.html">Help</a></li>
|
48 |
|
|
</ul>
|
49 |
|
|
</div>
|
50 |
|
|
<div class="subNav">
|
51 |
|
|
<ul class="navList">
|
52 |
|
|
<li><a href="../io/IZipReader.html" title="interface in io"><span class="typeNameLink">Prev Class</span></a></li>
|
53 |
|
|
<li>Next Class</li>
|
54 |
|
|
</ul>
|
55 |
|
|
<ul class="navList">
|
56 |
|
|
<li><a href="../index.html?io/ZipInStream.html" target="_top">Frames</a></li>
|
57 |
|
|
<li><a href="ZipInStream.html" target="_top">No Frames</a></li>
|
58 |
|
|
</ul>
|
59 |
|
|
<ul class="navList" id="allclasses_navbar_top">
|
60 |
|
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
61 |
|
|
</ul>
|
62 |
|
|
<div>
|
63 |
|
|
<script type="text/javascript"><!--
|
64 |
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
65 |
|
|
if(window==top) {
|
66 |
|
|
allClassesLink.style.display = "block";
|
67 |
|
|
}
|
68 |
|
|
else {
|
69 |
|
|
allClassesLink.style.display = "none";
|
70 |
|
|
}
|
71 |
|
|
//-->
|
72 |
|
|
</script>
|
73 |
|
|
</div>
|
74 |
|
|
<div>
|
75 |
|
|
<ul class="subNavList">
|
76 |
|
|
<li>Summary: </li>
|
77 |
|
|
<li>Nested | </li>
|
78 |
|
|
<li><a href="#field.summary">Field</a> | </li>
|
79 |
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
80 |
|
|
<li><a href="#method.summary">Method</a></li>
|
81 |
|
|
</ul>
|
82 |
|
|
<ul class="subNavList">
|
83 |
|
|
<li>Detail: </li>
|
84 |
|
|
<li><a href="#field.detail">Field</a> | </li>
|
85 |
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
86 |
|
|
<li><a href="#method.detail">Method</a></li>
|
87 |
|
|
</ul>
|
88 |
|
|
</div>
|
89 |
|
|
<a name="skip.navbar.top">
|
90 |
|
|
<!-- -->
|
91 |
|
|
</a></div>
|
92 |
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
93 |
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
94 |
|
|
<div class="header">
|
95 |
|
|
<div class="subTitle">io</div>
|
96 |
|
|
<h2 title="Class ZipInStream" class="title">Class ZipInStream</h2>
|
97 |
|
|
</div>
|
98 |
|
|
<div class="contentContainer">
|
99 |
|
|
<ul class="inheritance">
|
100 |
|
|
<li>java.lang.Object</li>
|
101 |
|
|
<li>
|
102 |
|
|
<ul class="inheritance">
|
103 |
|
|
<li>io.ZipInStream</li>
|
104 |
|
|
</ul>
|
105 |
|
|
</li>
|
106 |
|
|
</ul>
|
107 |
|
|
<div class="description">
|
108 |
|
|
<ul class="blockList">
|
109 |
|
|
<li class="blockList">
|
110 |
|
|
<dl>
|
111 |
|
|
<dt>All Implemented Interfaces:</dt>
|
112 |
|
|
<dd><a href="../io/IZipReader.html" title="interface in io">IZipReader</a></dd>
|
113 |
|
|
</dl>
|
114 |
|
|
<hr>
|
115 |
|
|
<br>
|
116 |
|
|
<pre>public class <span class="typeNameLabel">ZipInStream</span>
|
117 |
|
|
extends java.lang.Object
|
118 |
|
|
implements <a href="../io/IZipReader.html" title="interface in io">IZipReader</a></pre>
|
119 |
|
|
<div class="block"><p>
|
120 |
|
|
An instance of this class is used to read files in a classic ZIP.
|
121 |
|
|
|
122 |
|
|
<p>
|
123 |
|
|
Note: <br>
|
124 |
|
|
for ZIP - the first four bytes should be one of the following combinations:
|
125 |
|
|
|
126 |
|
|
<ul>
|
127 |
|
|
<li>50 4B 03 04</li>
|
128 |
|
|
<li>50 4B 05 06 (empty archive)</li>
|
129 |
|
|
<li>50 4B 07 08 (spanned archive)</li>
|
130 |
|
|
</ul>
|
131 |
|
|
|
132 |
|
|
<p>
|
133 |
|
|
<a href="https://en.wikipedia.org/wiki/List_of_file_signatures">source</a></div>
|
134 |
|
|
</li>
|
135 |
|
|
</ul>
|
136 |
|
|
</div>
|
137 |
|
|
<div class="summary">
|
138 |
|
|
<ul class="blockList">
|
139 |
|
|
<li class="blockList">
|
140 |
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
141 |
|
|
<ul class="blockList">
|
142 |
|
|
<li class="blockList"><a name="field.summary">
|
143 |
|
|
<!-- -->
|
144 |
|
|
</a>
|
145 |
|
|
<h3>Field Summary</h3>
|
146 |
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
147 |
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
148 |
|
|
<tr>
|
149 |
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
150 |
|
|
<th class="colLast" scope="col">Field and Description</th>
|
151 |
|
|
</tr>
|
152 |
|
|
<tr class="altColor">
|
153 |
|
|
<td class="colFirst"><code>private java.util.zip.ZipInputStream</code></td>
|
154 |
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/ZipInStream.html#zipIS">zipIS</a></span></code>
|
155 |
|
|
<div class="block">Input stream for ZIP file.</div>
|
156 |
|
|
</td>
|
157 |
|
|
</tr>
|
158 |
|
|
</table>
|
159 |
|
|
</li>
|
160 |
|
|
</ul>
|
161 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
162 |
|
|
<ul class="blockList">
|
163 |
|
|
<li class="blockList"><a name="constructor.summary">
|
164 |
|
|
<!-- -->
|
165 |
|
|
</a>
|
166 |
|
|
<h3>Constructor Summary</h3>
|
167 |
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
168 |
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
169 |
|
|
<tr>
|
170 |
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
171 |
|
|
</tr>
|
172 |
|
|
<tr class="altColor">
|
173 |
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../io/ZipInStream.html#ZipInStream-java.io.InputStream-">ZipInStream</a></span>(java.io.InputStream in)</code>
|
174 |
|
|
<div class="block">Initializes the ZIP input stream and check if the file contains any ZIP
|
175 |
|
|
element.</div>
|
176 |
|
|
</td>
|
177 |
|
|
</tr>
|
178 |
|
|
</table>
|
179 |
|
|
</li>
|
180 |
|
|
</ul>
|
181 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
182 |
|
|
<ul class="blockList">
|
183 |
|
|
<li class="blockList"><a name="method.summary">
|
184 |
|
|
<!-- -->
|
185 |
|
|
</a>
|
186 |
|
|
<h3>Method Summary</h3>
|
187 |
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
188 |
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
189 |
|
|
<tr>
|
190 |
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
191 |
|
|
<th class="colLast" scope="col">Method and Description</th>
|
192 |
|
|
</tr>
|
193 |
|
|
<tr id="i0" class="altColor">
|
194 |
|
|
<td class="colFirst"><code>void</code></td>
|
195 |
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/ZipInStream.html#close--">close</a></span>()</code>
|
196 |
|
|
<div class="block">Closes this input stream and releases any system resources associated with
|
197 |
|
|
the stream.</div>
|
198 |
|
|
</td>
|
199 |
|
|
</tr>
|
200 |
|
|
<tr id="i1" class="rowColor">
|
201 |
|
|
<td class="colFirst"><code>int</code></td>
|
202 |
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../io/ZipInStream.html#read--">read</a></span>()</code>
|
203 |
|
|
<div class="block">Reads the next byte of data from the input stream.</div>
|
204 |
|
|
</td>
|
205 |
|
|
</tr>
|
206 |
|
|
</table>
|
207 |
|
|
<ul class="blockList">
|
208 |
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
209 |
|
|
<!-- -->
|
210 |
|
|
</a>
|
211 |
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
212 |
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
213 |
|
|
</ul>
|
214 |
|
|
</li>
|
215 |
|
|
</ul>
|
216 |
|
|
</li>
|
217 |
|
|
</ul>
|
218 |
|
|
</div>
|
219 |
|
|
<div class="details">
|
220 |
|
|
<ul class="blockList">
|
221 |
|
|
<li class="blockList">
|
222 |
|
|
<!-- ============ FIELD DETAIL =========== -->
|
223 |
|
|
<ul class="blockList">
|
224 |
|
|
<li class="blockList"><a name="field.detail">
|
225 |
|
|
<!-- -->
|
226 |
|
|
</a>
|
227 |
|
|
<h3>Field Detail</h3>
|
228 |
|
|
<a name="zipIS">
|
229 |
|
|
<!-- -->
|
230 |
|
|
</a>
|
231 |
|
|
<ul class="blockListLast">
|
232 |
|
|
<li class="blockList">
|
233 |
|
|
<h4>zipIS</h4>
|
234 |
|
|
<pre>private java.util.zip.ZipInputStream zipIS</pre>
|
235 |
|
|
<div class="block">Input stream for ZIP file.</div>
|
236 |
|
|
</li>
|
237 |
|
|
</ul>
|
238 |
|
|
</li>
|
239 |
|
|
</ul>
|
240 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
241 |
|
|
<ul class="blockList">
|
242 |
|
|
<li class="blockList"><a name="constructor.detail">
|
243 |
|
|
<!-- -->
|
244 |
|
|
</a>
|
245 |
|
|
<h3>Constructor Detail</h3>
|
246 |
|
|
<a name="ZipInStream-java.io.InputStream-">
|
247 |
|
|
<!-- -->
|
248 |
|
|
</a>
|
249 |
|
|
<ul class="blockListLast">
|
250 |
|
|
<li class="blockList">
|
251 |
|
|
<h4>ZipInStream</h4>
|
252 |
|
|
<pre>public ZipInStream(java.io.InputStream in)
|
253 |
|
|
throws java.io.IOException</pre>
|
254 |
|
|
<div class="block">Initializes the ZIP input stream and check if the file contains any ZIP
|
255 |
|
|
element.</div>
|
256 |
|
|
<dl>
|
257 |
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
258 |
|
|
<dd><code>in</code> - input stream.</dd>
|
259 |
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
260 |
|
|
<dd><code>java.io.IOException</code> - if an I/O error has occurred or if no ZIP element exists.</dd>
|
261 |
|
|
</dl>
|
262 |
|
|
</li>
|
263 |
|
|
</ul>
|
264 |
|
|
</li>
|
265 |
|
|
</ul>
|
266 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
267 |
|
|
<ul class="blockList">
|
268 |
|
|
<li class="blockList"><a name="method.detail">
|
269 |
|
|
<!-- -->
|
270 |
|
|
</a>
|
271 |
|
|
<h3>Method Detail</h3>
|
272 |
|
|
<a name="read--">
|
273 |
|
|
<!-- -->
|
274 |
|
|
</a>
|
275 |
|
|
<ul class="blockList">
|
276 |
|
|
<li class="blockList">
|
277 |
|
|
<h4>read</h4>
|
278 |
|
|
<pre>public int read()
|
279 |
|
|
throws java.io.IOException</pre>
|
280 |
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../io/IZipReader.html#read--">IZipReader</a></code></span></div>
|
281 |
|
|
<div class="block">Reads the next byte of data from the input stream.</div>
|
282 |
|
|
<dl>
|
283 |
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
284 |
|
|
<dd><code><a href="../io/IZipReader.html#read--">read</a></code> in interface <code><a href="../io/IZipReader.html" title="interface in io">IZipReader</a></code></dd>
|
285 |
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
286 |
|
|
<dd>the next byte of data, or -1 if the end of the stream is reached.</dd>
|
287 |
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
288 |
|
|
<dd><code>java.io.IOException</code> - if an I/O error has occurred.</dd>
|
289 |
|
|
</dl>
|
290 |
|
|
</li>
|
291 |
|
|
</ul>
|
292 |
|
|
<a name="close--">
|
293 |
|
|
<!-- -->
|
294 |
|
|
</a>
|
295 |
|
|
<ul class="blockListLast">
|
296 |
|
|
<li class="blockList">
|
297 |
|
|
<h4>close</h4>
|
298 |
|
|
<pre>public void close()
|
299 |
|
|
throws java.io.IOException</pre>
|
300 |
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../io/IZipReader.html#close--">IZipReader</a></code></span></div>
|
301 |
|
|
<div class="block">Closes this input stream and releases any system resources associated with
|
302 |
|
|
the stream.</div>
|
303 |
|
|
<dl>
|
304 |
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
305 |
|
|
<dd><code><a href="../io/IZipReader.html#close--">close</a></code> in interface <code><a href="../io/IZipReader.html" title="interface in io">IZipReader</a></code></dd>
|
306 |
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
307 |
|
|
<dd><code>java.io.IOException</code> - if an I/O error has occurred.</dd>
|
308 |
|
|
</dl>
|
309 |
|
|
</li>
|
310 |
|
|
</ul>
|
311 |
|
|
</li>
|
312 |
|
|
</ul>
|
313 |
|
|
</li>
|
314 |
|
|
</ul>
|
315 |
|
|
</div>
|
316 |
|
|
</div>
|
317 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
318 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
319 |
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
320 |
|
|
<!-- -->
|
321 |
|
|
</a>
|
322 |
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
323 |
|
|
<a name="navbar.bottom.firstrow">
|
324 |
|
|
<!-- -->
|
325 |
|
|
</a>
|
326 |
|
|
<ul class="navList" title="Navigation">
|
327 |
|
|
<li><a href="../overview-summary.html">Overview</a></li>
|
328 |
|
|
<li><a href="package-summary.html">Package</a></li>
|
329 |
|
|
<li class="navBarCell1Rev">Class</li>
|
330 |
|
|
<li><a href="class-use/ZipInStream.html">Use</a></li>
|
331 |
|
|
<li><a href="package-tree.html">Tree</a></li>
|
332 |
|
|
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
333 |
|
|
<li><a href="../index-files/index-1.html">Index</a></li>
|
334 |
|
|
<li><a href="../help-doc.html">Help</a></li>
|
335 |
|
|
</ul>
|
336 |
|
|
</div>
|
337 |
|
|
<div class="subNav">
|
338 |
|
|
<ul class="navList">
|
339 |
|
|
<li><a href="../io/IZipReader.html" title="interface in io"><span class="typeNameLink">Prev Class</span></a></li>
|
340 |
|
|
<li>Next Class</li>
|
341 |
|
|
</ul>
|
342 |
|
|
<ul class="navList">
|
343 |
|
|
<li><a href="../index.html?io/ZipInStream.html" target="_top">Frames</a></li>
|
344 |
|
|
<li><a href="ZipInStream.html" target="_top">No Frames</a></li>
|
345 |
|
|
</ul>
|
346 |
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
347 |
|
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
348 |
|
|
</ul>
|
349 |
|
|
<div>
|
350 |
|
|
<script type="text/javascript"><!--
|
351 |
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
352 |
|
|
if(window==top) {
|
353 |
|
|
allClassesLink.style.display = "block";
|
354 |
|
|
}
|
355 |
|
|
else {
|
356 |
|
|
allClassesLink.style.display = "none";
|
357 |
|
|
}
|
358 |
|
|
//-->
|
359 |
|
|
</script>
|
360 |
|
|
</div>
|
361 |
|
|
<div>
|
362 |
|
|
<ul class="subNavList">
|
363 |
|
|
<li>Summary: </li>
|
364 |
|
|
<li>Nested | </li>
|
365 |
|
|
<li><a href="#field.summary">Field</a> | </li>
|
366 |
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
367 |
|
|
<li><a href="#method.summary">Method</a></li>
|
368 |
|
|
</ul>
|
369 |
|
|
<ul class="subNavList">
|
370 |
|
|
<li>Detail: </li>
|
371 |
|
|
<li><a href="#field.detail">Field</a> | </li>
|
372 |
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
373 |
|
|
<li><a href="#method.detail">Method</a></li>
|
374 |
|
|
</ul>
|
375 |
|
|
</div>
|
376 |
|
|
<a name="skip.navbar.bottom">
|
377 |
|
|
<!-- -->
|
378 |
|
|
</a></div>
|
379 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
380 |
|
|
</body>
|
381 |
|
|
</html>
|