src/main/java/org/gbif/ala/spatial/LayerCrawler.java
/**
   * Unzip the file to the path.
   */
Unzip the file to the path.
Unzip the file to the path .
public static void unzipFiles(final ZipInputStream zipInputStream, final java.nio.file.Path unzipFilePath) throws IOException {
    try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(unzipFilePath.toAbsolutePath().toString()))) {
      byte[] bytesIn = new byte[1024];
      int read = 0;
      while ((read = zipInputStream.read(bytesIn)) != -1) {
        bos.write(bytesIn, 0, read);
      }
    }
  }
public static void unzipFiles ( final ZipInputStream zipInputStream , final java . nio . file . Path unzipFilePath ) throws IOException { try ( BufferedOutputStream bos = new BufferedOutputStream ( new FileOutputStream ( unzipFilePath . toAbsolutePath ( ) . toString ( ) ) ) ) { byte [ ] bytesIn = new byte [ 1024 ] ; int read = 0 ; while ( ( read = zipInputStream . read ( bytesIn ) ) != - 1 ) { bos . write ( bytesIn , 0 , read ) ; } } }
Unzip the file to the path.
Unzip the file to the path .