Log Message: |
Nue: uncompressShapeZip
/**
* Entpackt ein ZIP nach tmp (wo es angeblich von der Java VM nach JRE Ende
* gelöscht wird und liefert eine URL auf die erste gefundene .SHP Datei
* zurück. TODO Die entpacketen Dateien bleiben in Temp liegen!.
*
* @throws IOException
*/
public static URL uncompressShapeZip(File zipFile)
throws FileNotFoundException, IOException {
return uncompressShapeZip(new FileInputStream(zipFile));
}
/**
* Entpackt einen ZIP Stream nach tmp und liefert eine URL auf die erste gefundene .SHP Datei
* zurück. TODO Die entpackten Dateien bleiben in Temp liegen!.
*
* @throws IOException
*/
public static URL uncompressShapeZip(InputStream zippedInputstream)
throws IOException {
ZipInputStream inStream = new ZipInputStream(zippedInputstream);
|