Package java.util.zip

Examples of java.util.zip.ZipInputStream.closeEntry()


                        }
                        finally {
                            output.close();
                        }
                    }
                    input.closeEntry();
                    writer.flush();
                }
            }
            catch (IOException ex) {
                pushException(ex);
View Full Code Here


                    while ((n = zipInputStream.read(buf, 0, buf.length)) > -1) {
                        fileOutputStream.write(buf, 0, n);
                    }

                    fileOutputStream.close();
                    zipInputStream.closeEntry();

                    return tempFile.toURI().toURL();

                }
                zipEntry = zipInputStream.getNextEntry();
View Full Code Here

                    DocumentBuilder builder = factory.newDocumentBuilder();
                    doc = builder.parse(in);
                    in.close();
                    in = null;
                    break;
                } else in.closeEntry();
            }
        } catch (ParserConfigurationException e) {
            log.error("Unable to read META-INF/ra.xml in RAR file '"+data.getRaURI()+"'", e);
        } catch (SAXException e) {
            log.error("Unable to read META-INF/ra.xml in RAR file '"+data.getRaURI()+"'", e);
View Full Code Here

      baos.write(b);
        }
        baos.close();
        jarEntries.put(entry.getName(), baos.toByteArray());
    }
    zin.closeEntry();
      }
     
      if (!tldFound)
    throw new JasperException(Constants.getString("jsp.error.tld_not_found",
                    new Object[] {
View Full Code Here

        ZipInputStream zin = new ZipInputStream(in);
        try {
            ZipEntry entry;
            while ((entry=zin.getNextEntry())!=null && success) {
                success = importZipEntry(zin, entry, context, contentNode);
                zin.closeEntry();
            }
        } finally {
            zin.close();
            in.close();
        }
View Full Code Here

                        }
                        finally {
                            closeSilently(output);
                        }
                    }
                    input.closeEntry();
                }
            }
            finally {
                closeSilently(input);
            }
View Full Code Here

          final Image image = getImage(iconJar);
          final Long bytes = new Long(ze.getSize());
          //logger.debug ("Add Icon: " + name);
          addIconEntry(name, category, image, bytes);
        }
        iconJar.closeEntry();
        ze = iconJar.getNextEntry();
      }
    }
    catch (IOException e)
    {
View Full Code Here

          }

          root.updateEntry(buildName, 0, nextEntry, bos.toByteArray());
        }

        zipIn.closeEntry();
        nextEntry = zipIn.getNextEntry();
      }
    }
    finally
    {
View Full Code Here

            def.end();
          }
          root.updateEntry(buildName, 0, nextEntry, bos.toByteArray());
        }

        zipIn.closeEntry();
        nextEntry = zipIn.getNextEntry();
      }
    }
    finally
    {
View Full Code Here

                    DocumentBuilder builder = factory.newDocumentBuilder();
                    doc = builder.parse(in);
                    in.close();
                    in = null;
                    break;
                } else in.closeEntry();
            }
        } catch (ParserConfigurationException e) {
            log.error("Unable to read META-INF/ra.xml in RAR file '"+data.getRaURI()+"'", e);
        } catch (SAXException e) {
            log.error("Unable to read META-INF/ra.xml in RAR file '"+data.getRaURI()+"'", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.