Examples of closeEntry()


Examples of com.sun.enterprise.deployment.deploy.shared.OutputJarArchive.closeEntry()

                    is = source.getEntry(entry);
                    os = destination.putNextEntry(entry);
                    ArchivistUtils.copyWithoutClose(is, os);
                } finally {
                    if (is != null) is.close();
                    if (os != null) destination.closeEntry();
                }
            }
        } finally {
            source.close();
            destination.close();
View Full Code Here

Examples of de.schlichtherle.util.zip.ZipOutputStream.closeEntry()

                    }

                    exist = true;
                    zipOut.putNextEntry(new ZipEntry(input.getName()));
                    NioUtils.copy(stream, zipOut);// 输出到压缩流中
                    zipOut.closeEntry();
                } finally {
                    IOUtils.closeQuietly(stream);
                }
            }
View Full Code Here

Examples of flex2.compiler.swc.zip.ZipOutputStream.closeEntry()

                entry.setTime(f.getLastModified());
                zos.putNextEntry( entry );

                BufferedInputStream in = new BufferedInputStream(f.getInputStream());
                FileUtil.streamOutput(in, zos);
                zos.closeEntry();
            }

            zos.close();
            zos = null;
View Full Code Here

Examples of java.io.BufferedInputStream.closeEntry()

           
            Image image = new Image(display, new ByteArrayInputStream(outputStream.toByteArray()));
            map.put(name, image);
          }
         
          inputStream.closeEntry();
        }
       
        inputStream.close();
        images = map.values().toArray(new Image[map.size()]);
      } else {
View Full Code Here

Examples of java.io.InputStream.closeEntry()

           
            Image image = new Image(display, new ByteArrayInputStream(outputStream.toByteArray()));
            map.put(name, image);
          }
         
          inputStream.closeEntry();
        }
       
        inputStream.close();
        images = map.values().toArray(new Image[map.size()]);
      } else {
View Full Code Here

Examples of java.util.jar.JarInputStream.closeEntry()

         File file = new File(dest, fileName);
         if (entry.isDirectory())
         {
            // make sure the directory exists
            file.mkdirs();
            jin.closeEntry();
         }
         else
         {
            // make sure the directory exists
            File parent = file.getParentFile();
View Full Code Here

Examples of java.util.jar.JarInputStream.closeEntry()

            {
               out.write(buffer, 0, len);
            }
            out.flush();
            out.close();
            jin.closeEntry();
            file.setLastModified(entry.getTime());
         }
         entry = jin.getNextEntry();
      }
      /* Explicity write out the META-INF/MANIFEST.MF so that any headers such
View Full Code Here

Examples of java.util.jar.JarOutputStream.closeEntry()

               while( bytes > 0 )
               {
                  jos.write(buffer, 0, bytes);
                  bytes = is.read(buffer);
               }
               jos.closeEntry();
            }
            jarFile.close();
            jos.close();
            tmpFile.delete();
         }
View Full Code Here

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

                }
                if (entry.getName().equals(entryName)) {
                    result = true;
                    break;
                }
                file.closeEntry();
            }
            file.close();
            return result;
        } catch (IOException e) {
            return false;
View Full Code Here

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

                            result = true;
                            break;
                        }
                    }
                }
                file.closeEntry();
            }
            file.close();
            return result;
        } catch (IOException e) {
            return false;
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.