Examples of closeEntry()


Examples of net.sf.jazzlib.ZipInputStream.closeEntry()

            if (dirSepIndex > 0) {
              // get subdirs
              createIn = getAllSubdirs(targetDir, name.substring(0, dirSepIndex), false);
              if (createIn == null) {
                //sub directories don't exist, and aren't locked
                oZip.closeEntry();
                oEntr = oZip.getNextEntry();
                continue;
              }
              name = name.substring(dirSepIndex + 1);
            }
View Full Code Here

Examples of net.sf.jazzlib.ZipOutputStream.closeEntry()

      zipEntry(sourceFile, sourcePath, targetDir, zipOutputStream);
     
      if (ua != null) {
        zipOutputStream.putNextEntry(new net.sf.jazzlib.ZipEntry("META-INF" + File.separatorChar));
        zipOutputStream.closeEntry();
       
        zipOutputStream.putNextEntry(new net.sf.jazzlib.ZipEntry("META-INF" + File.separatorChar+ "manifest.xml"));
        try {
          GlobalContext.serialize(ua, zipOutputStream, String.class);
          zipOutputStream.closeEntry();
View Full Code Here

Examples of org.apache.tools.tar.TarInputStream.closeEntry()

            while( (l = in.read(buf, 0, 1024)) != -1 ) {
              out.write(buf,0,l);
            }
            out.close();
          }
          in.closeEntry();
        }
        in.close();
       
        if( targetDir == null ) {
          targetDir = new File(targetDirectory,"eclipse");
View Full Code Here

Examples of org.apache.tools.tar.TarOutputStream.closeEntry()

      TarEntry te = new TarEntry("foo");
      byte[] data = "some-content".getBytes("UTF-8");
      te.setSize(data.length);
      tos.putNextEntry(te);
      tos.write(data);
      tos.closeEntry();
      tos.flush();
      tos.finish();
    } finally {
      tos.close();
    }
View Full Code Here

Examples of org.apache.tools.zip.ZipOutputStream.closeEntry()

                        zout.putNextEntry(entry);
                        processStream(in, zout);
                    } else {
                        zout.putNextEntry(entry);
                    }
                    zout.closeEntry();
                } catch (IOException e) {
                    debug(e.getMessage());
                } finally {
                    if (in != null) {
                        try {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.serialization.ObjectZipWriterImpl.closeEntry()

            contentWriter.close();
         }

         if (contentLenWriter != null)
         {
            contentLenWriter.closeEntry();
            contentLenWriter.close();
         }

         if (rs != null)
         {
View Full Code Here

Examples of org.glassfish.api.deployment.archive.WritableArchive.closeEntry()

                try {
                    os = target.putNextEntry(moduleJar.getName());
                    FileUtils.copy(is, os, moduleJar.length());
                } finally {
                    if (os!=null) {
                        target.closeEntry();
                    }
                    is.close();
                }
            }
        }
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.