public void extractFromArchive(final File targetFile, final boolean forceOverwrite) throws IOException {
		if (zipArchive != null) {
			ZipEntry entry = zipArchive.getEntry(targetFile.getName());
			if (entry != null) {
				if (!targetFile.exists()) {
					try {
						targetFile.createNewFile();
					} catch (IOException ex) {
						throw new JFunkException("Error creating file: " + targetFile, ex);
					}
				} else if (!forceOverwrite) {
					return;
				}
				logger.info("Loading file '{}' from zip archive...", targetFile);
				OutputStream out = null;
				InputStream in = null;
				try {
					out = new FileOutputStream(targetFile);
					in = zipArchive.getInputStream(entry);
					IOUtils.copy(in, out);
				} finally {
					IOUtils.closeQuietly(in);
					IOUtils.closeQuietly(out);
				}
			} else {
				logger.error("Could not find file '{}' in zip archive", targetFile);
			}
		}
	}
public void extractFromArchive ( final File targetFile , final boolean forceOverwrite ) throws IOException { if ( zipArchive != null ) { ZipEntry entry = zipArchive . getEntry ( targetFile . getName ( ) ) ; if ( entry != null ) { if ( ! targetFile . exists ( ) ) { try { targetFile . createNewFile ( ) ; } catch ( IOException ex ) { throw new JFunkException ( "Error creating file: " + targetFile , ex ) ; } } else if ( ! forceOverwrite ) { return ; } logger . info ( "Loading file '{}' from zip archive..." , targetFile ) ; OutputStream out = null ; InputStream in = null ; try { out = new FileOutputStream ( targetFile ) ; in = zipArchive . getInputStream ( entry ) ; IOUtils . copy ( in , out ) ; } finally { IOUtils . closeQuietly ( in ) ; IOUtils . closeQuietly ( out ) ; } } else { logger . error ( "Could not find file '{}' in zip archive" , targetFile ) ; } } }
Extracts the specified file from this configuration's zip file, if applicable.

@param targetFile
The target file. The file name without the path information is taken in order to
identify the zip entry to extract.
@param forceOverwrite
If {@code true}, an existing file is overwritten.