src/com/esotericsoftware/scar/Scar.java
static public String ungzip (String gzipFile, String file) throws IOException {
		if (gzipFile == null) throw new IllegalArgumentException("gzipFile cannot be null.");
		if (file == null) throw new IllegalArgumentException("file cannot be null.");

		if (DEBUG) debug("scar", "GZIP decoding: " + gzipFile + " -> " + file);

		FileOutputStream output = new FileOutputStream(file);
		try {
			copyStream(new GZIPInputStream(new FileInputStream(gzipFile)), output);
		} finally {
			try {
				output.close();
			} catch (Exception ignored) {
			}
		}
		return file;
	}
/** Decodes the specified GZIP file.
	 * @return The path to the decoded file. */
Decodes the specified GZIP file.
@return The path to the decoded file.
Decodes the specified GZIP file . @return The path to the decoded file .
static public String ungzip (String gzipFile, String file) throws IOException {
		if (gzipFile == null) throw new IllegalArgumentException("gzipFile cannot be null.");
		if (file == null) throw new IllegalArgumentException("file cannot be null.");
		if (DEBUG) debug("scar", "GZIP decoding: " + gzipFile + " -> " + file);
		FileOutputStream output = new FileOutputStream(file);
		try {
			copyStream(new GZIPInputStream(new FileInputStream(gzipFile)), output);
		} finally {
			try {
				output.close();
			} catch (Exception ignored) {
			}
		}
		return file;
	}
static public String ungzip ( String gzipFile , String file ) throws IOException { if ( gzipFile == null ) throw new IllegalArgumentException ( "gzipFile cannot be null." ) ; if ( file == null ) throw new IllegalArgumentException ( "file cannot be null." ) ; if ( DEBUG ) debug ( "scar" , "GZIP decoding: " + gzipFile + " -> " + file ) ; FileOutputStream output = new FileOutputStream ( file ) ; try { copyStream ( new GZIPInputStream ( new FileInputStream ( gzipFile ) ) , output ) ; } finally { try { output . close ( ) ; } catch ( Exception ignored ) { } } return file ; }
Decodes the specified GZIP file.
Decodes the specified GZIP file .