139 |
public ZipEntry getNextEntry() throws IOException |
public ZipEntry getNextEntry() throws IOException |
140 |
{ |
{ |
141 |
if (crc == null) |
if (crc == null) |
142 |
throw new IllegalStateException("Closed."); |
throw new IOException("Stream closed."); |
143 |
if (entry != null) |
if (entry != null) |
144 |
closeEntry(); |
closeEntry(); |
145 |
|
|
216 |
public void closeEntry() throws IOException |
public void closeEntry() throws IOException |
217 |
{ |
{ |
218 |
if (crc == null) |
if (crc == null) |
219 |
throw new IllegalStateException("Closed."); |
throw new IOException("Stream closed."); |
220 |
if (entry == null) |
if (entry == null) |
221 |
return; |
return; |
222 |
|
|
287 |
public int read(byte[] b, int off, int len) throws IOException |
public int read(byte[] b, int off, int len) throws IOException |
288 |
{ |
{ |
289 |
if (crc == null) |
if (crc == null) |
290 |
throw new IllegalStateException("Closed."); |
throw new IOException("Stream closed."); |
291 |
if (entry == null) |
if (entry == null) |
292 |
return -1; |
return -1; |
293 |
boolean finished = false; |
boolean finished = false; |