public void extractAll ( Path targetDir , CopyOption ... options ) throws IOException { if ( ! Files . isDirectory ( targetDir ) ) { throw new NotDirectoryException ( targetDir . toString ( ) ) ; } ensureReading ( ) ; do { Path p = targetDir . resolve ( filename ) ; InputStream is = Channels . newInputStream ( this ) ; Files . copy ( is , p , options ) ; Files . setLastModifiedTime ( p , lastModified ) ; } while ( nextInput ( ) ) ; }
Extract files from this GZIPChannel to given directory .