[][src]Module lzma::reader

This module implements LzmaReader.

LzmaReader implements the LZMA (XZ) compression/decompression algorithm as a generic Reader. In other words, it behaves similar to BufReader. Instead of buffering the Read object passed to it, LzmaReader applies compression or decompression to it as it's read.

Examples

use lzma::LzmaReader;
use std::io::prelude::*;
use std::fs::File;

let f = File::open("foo.xz").unwrap();
let mut f = LzmaReader::new_decompressor(f).unwrap();
let mut s = String::new();

f.read_to_string(&mut s).unwrap();
println!("{}", s);

Structs

LzmaReader