it.geosolutions.tools.compress.file
Class Extract
java.lang.Object
it.geosolutions.tools.compress.file.Extract
public final class Extract
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Extract
public Extract()
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
Copyright © 2011-2012 GeoSolutions. All Rights Reserved.