it.geosolutions.tools.compress.file
Class Extract

java.lang.Object
  extended by it.geosolutions.tools.compress.file.Extract

public final class Extract
extends Object


Constructor Summary
Extract()
           
 
Method Summary
static File extract(File inFile, File destination, boolean remove_source)
           
static String extract(String in_name)
          extract(String, boolean)
static String extract(String in_name, boolean remove_source)
           
static org.apache.tika.mime.MediaType getType(File in_file)
          Return a mediatype describing the input file mime
protected static Matcher match(String in_name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extract

public Extract()
Method Detail

match

protected static Matcher match(String in_name)
Parameters:
in_name -
Returns:
the matcher if it match the string
See Also:
expression for group matching

getType

public static org.apache.tika.mime.MediaType getType(File in_file)
Return a mediatype describing the input file mime

Parameters:
File - the input file to check

extract

public static String extract(String in_name)
                      throws Exception
extract(String, boolean)

Parameters:
in_name -
Returns:
Throws:
Exception

extract

public static String extract(String in_name,
                             boolean remove_source)
                      throws Exception
Parameters:
in_name - the name of the file to decompress, it could be: a directory a file a bz2, bzip2, tbz2 a gz, gzip, tgz a tar file a zip file
Returns:
the output dir where files are extracted
Throws:
Exception

extract

public static File extract(File inFile,
                           File destination,
                           boolean remove_source)
                    throws Exception
Throws:
Exception


Copyright © 2011-2012 GeoSolutions. All Rights Reserved.