Examples of closeEntry()


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

                    // the file could have been deleted in the meantime
                    // ignore this (in this case an empty file is created)
                } finally {
                    IOUtils.closeSilently(in);
                }
                zipOut.closeEntry();
                if (!quiet) {
                    out.println("Processed: " + fileName);
                }
            }
            zipOut.closeEntry();
View Full Code Here

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

                zipOut.closeEntry();
                if (!quiet) {
                    out.println("Processed: " + fileName);
                }
            }
            zipOut.closeEntry();
            zipOut.close();
        } catch (IOException e) {
            throw DbException.convertIOException(e, zipFileName);
        } finally {
            IOUtils.closeSilently(fileOut);
View Full Code Here

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

      catch (LogManagerException e)
      {
        throw new EngineException(e);
      }
     
      zip_stream.closeEntry();
      zip_stream.close();
      // disabled since tomcat closes it anyhow and complains otherwise
      // binary_out.close();
    }
    catch (IOException e)
View Full Code Here

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

            out.write(buffer, 0, count);
          }
        }

      }
      out.closeEntry();
      in.closeEntry();
    }
    out.close();
    in.close();
  }
View Full Code Here

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

                zout.write(version.getBytes(), 0, version.getBytes().length);
               
                if (comment.length() > 0)
                    zout.write(("\n" + comment).getBytes(), 0, ("\n" + comment).getBytes().length);
               
                zout.closeEntry();
               
                for (String file : files) {
                    if (!file.endsWith(".log")) {
                        InputStream in = new FileInputStream(file);
                        ZipEntry e = new ZipEntry(file.replace(File.separatorChar, '/'));
View Full Code Here

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

                        }

                        listener.sendMessage(DcResources.getText("msgCreatingBackupOfFile", file));

                        in.close();
                        zout.closeEntry();
                    }

                    listener.notifyProcessed();
                }
               
View Full Code Here

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

                buffer,
                0,
                n);
        }
        inputStream.close();
        zipOutputStream.closeEntry();
        zipOutputStream.close();
    }
}
View Full Code Here

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

      for (EncryptedTable table : getEncryptedTables(connection)) {
        ZipEntry entry = new ZipEntry(table.tableName + ".dat");
        zip.putNextEntry(entry);
        table.save(connection, writer);
        writer.flush();
        zip.closeEntry();
      }
      zip.flush();
      zip.close();
    } catch (Exception e) {
      if (zip != null) {
View Full Code Here

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

                FileUtils.closeSafely(out);
              }
            }
          }
        }
        oZip.closeEntry();
        oEntr = oZip.getNextEntry();
      }
    } catch (IOException e) {
      return false;
    } finally {
View Full Code Here

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

      while (oEntr != null) {
        if (oEntr.getName() != null && !oEntr.getName().startsWith(DIR_NAME__MACOSX)) {
          if (oEntr.isDirectory()) {
            // skip MacOSX specific metadata directory
            // directories aren't locked
            oZip.closeEntry();
            oEntr = oZip.getNextEntry();
            continue;
          } else {
            // search file
            VFSContainer createIn = targetDir;
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.