https://github.com/pykello/dartlang-bzip2
Bzip2 compression/decompression algorithm for dartlang.
https://github.com/pykello/dartlang-bzip2
Last synced: 11 months ago
JSON representation
Bzip2 compression/decompression algorithm for dartlang.
- Host: GitHub
- URL: https://github.com/pykello/dartlang-bzip2
- Owner: pykello
- License: other
- Created: 2013-04-23T03:03:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T20:59:16.000Z (almost 7 years ago)
- Last Synced: 2025-06-28T17:12:56.659Z (11 months ago)
- Language: Roff
- Size: 1.97 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bzip2 Compression/Decompression Library for Dart
[](https://drone.io/github.com/pykello/dartlang-bzip2/latest)
The goal of this library is to implement [bzip2](http://www.bzip.org/) compression/decompression algorithms for [dartlang](http://www.dartlang.org/).
The algorithm used here is based on [7-zip](http://www.7-zip.org/)'s source code.
## Example Usage
The following code reads a compressed text file and prints it line by line:
import 'package:bzip2/bzip2.dart';
import 'dart:async';
import 'dart:io';
...
new File('compressedFile.bz2').openRead()
.transform(new Bzip2Decompressor())
.transform(new StringDecoder())
.transform(new LineTransformer())
.listen((var line) => print(line));