Latest 2.0.0
Homepage https://github.com/ReDetection/NVHGzipFile
License MIT
Platforms ios 8.0, requires ARC
Authors

This is an ObjC library for gzipping/ungzipping that directly manipulates files. It isn’t implemented as a category on NSData (unlike GZIP or Godzippa) so the full file doesn’t have to be first loaded into memory.

Version 1.1.1 is the latest supporting iOS 7.

Usage

Asynchronous

Extract Gzip file

    [[[NVHGzipFile alloc]
        initWithPath:gzipFilePath]
        inflateToPath:destinationFilePath completion:^(NSError *error) {
            [self completeActionWithError:error];
        }];

Gzip file

    [[[NVHGzipFile alloc]
        initWithPath:sourceFilePath]
        deflateFromPath:destinationGzipFilePath completion:^(NSError *error) {
            [self completeActionWithError:error];
        }];

Synchronous

Extract Gzip file

    NSError *error = nil;
    BOOL success = [[[NVHGzipFile alloc]
        initWithPath:gzipFilePath]
        inflateToPath:destinationFilePath error:&error];

Gzip file

    NSError *error = nil;
    BOOL success = [[[NVHGzipFile alloc]
        initWithPath:sourceFilePath]
        deflateFromPath:destinationGzipFilePath error:&error];

Installation

NVHGzipFile is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "NVHGzipFile", :git => 'https://github.com/ReDetection/NVHGzipFile.git'

Author

Niels van Hoorn, [email protected]

ReDetection just cutted out everyithing except gzip

Pull requests are welcome!

License

NVHGzipFile is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NVHGzipFile",
    "version": "2.0.0",
    "summary": "Just a simple Gzip handling for iOS8+",
    "description": "Unpack and pack gzipped files with ease. Features:n * Low memory footprintn * Asynchronous and synchronous and API's",
    "homepage": "https://github.com/ReDetection/NVHGzipFile",
    "license": "MIT",
    "authors": {
        "Niels van Hoorn": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ReDetection/NVHGzipFile.git",
        "tag": "2.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Classes/*",
    "libraries": "z"
}

Pin It on Pinterest

Share This