From 29842007ec55b8d0e13d8df2c797b755950c98d9 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Mon, 14 May 2007 21:57:16 +0000
Subject: [PATCH] added constructor to zip extractor for extracting from a stream with no application

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
index 77e75c8..7ea35fd 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ZipExtractor.java
@@ -73,6 +73,19 @@
 
   /**
    * Creates an instance of an ZipExtractor.
+   * @param in InputStream for zip content
+   * @param zipFileName name of the input zip file
+   * @throws FileNotFoundException if the specified file does not exist
+   * @throws IllegalArgumentException if the zip file is not a zip file
+   */
+  public ZipExtractor(InputStream in, String zipFileName)
+    throws FileNotFoundException, IllegalArgumentException
+  {
+    this(in, 0, 0, 1, zipFileName, null);
+  }
+
+  /**
+   * Creates an instance of an ZipExtractor.
    * @param zipFile File the zip file to extract
    * @param minRatio int indicating the max ration
    * @param maxRatio int indicating the min ration

--
Gitblit v1.10.0