mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
30.10.2007 999f5e9565f119253a6f23e98aa0732aa1cc69ad
opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
@@ -27,7 +27,7 @@
package org.opends.quicksetup.util;
import org.opends.quicksetup.QuickSetupException;
import org.opends.quicksetup.ApplicationException;
import org.opends.quicksetup.Application;
import org.opends.quicksetup.i18n.ResourceProvider;
@@ -102,18 +102,18 @@
  /**
   * Performs the zip extraction.
   * @param destination File where the zip file will be extracted
   * @throws QuickSetupException if something goes wrong
   * @throws ApplicationException if something goes wrong
   */
  public void extract(File destination) throws QuickSetupException {
  public void extract(File destination) throws ApplicationException {
    extract(Utils.getPath(destination));
  }
  /**
   * Performs the zip extraction.
   * @param destination File where the zip file will be extracted
   * @throws QuickSetupException if something goes wrong
   * @throws ApplicationException if something goes wrong
   */
  public void extract(String destination) throws QuickSetupException {
  public void extract(String destination) throws ApplicationException {
    ZipInputStream zipIn = new ZipInputStream(is);
    int nEntries = 1;
@@ -156,8 +156,8 @@
                    Utils.getThrowableMsg(ResourceProvider.getInstance(),
                      "error-copying", arg, ioe);
            throw new QuickSetupException(
                    QuickSetupException.Type.FILE_SYSTEM_ERROR,
            throw new ApplicationException(
                    ApplicationException.Type.FILE_SYSTEM_ERROR,
                    errorMsg, ioe);
          }
        }
@@ -199,8 +199,8 @@
      String errorMsg =
              Utils.getThrowableMsg(ResourceProvider.getInstance(),
                      "error-zip-stream", arg, ioe);
      throw new QuickSetupException(QuickSetupException.Type.FILE_SYSTEM_ERROR,
          errorMsg, ioe);
      throw new ApplicationException(
          ApplicationException.Type.FILE_SYSTEM_ERROR, errorMsg, ioe);
    }
  }