public class GenericGridZipFile extends Object implements Closeable
| Constructor and Description |
|---|
GenericGridZipFile(ZipFile zipFile) |
GenericGridZipFile(ZipFile zipFile,
Set<String> headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getHeaderFileNames() |
GenericGridDataReader |
getReader(Header header) |
static GenericGridZipFile |
open(File file) |
Header |
readHeader(String headerFileName)
Read generic grid header data from zip entry
|
static List<File> |
unzip(File zipArchive,
File destination)
Unzip the zip archive to destination folder.
|
public GenericGridZipFile(ZipFile zipFile)
public static GenericGridZipFile open(File file) throws ZipException, IOException
ZipExceptionIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Header readHeader(String headerFileName) throws IOException
headerFileName - IOExceptionpublic GenericGridDataReader getReader(Header header) throws IOException
IOExceptionpublic static List<File> unzip(File zipArchive, File destination) throws IOException
zipArchive - archive to unzipdestination - target directoryIOExceptionCopyright © 2016. All rights reserved.