Skip to content

Commit 9d798eb

Browse files
committed
update README.md
1 parent 81765c7 commit 9d798eb

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

README.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,40 @@
1-
# TranscodingStreams
1+
TranscodingStreams.jl - IO streams with transcoding
2+
===================================================
23

3-
[![Build Status](https://travis-ci.org/bicycle1885/TranscodingStreams.jl.svg?branch=master)](https://travis-ci.org/bicycle1885/TranscodingStreams.jl)
4+
<!--[![Docs Latest][docs-latest-img]][docs-latest-url]-->
5+
[![TravisCI Status][travisci-img]][travisci-url]
6+
<!--[![Appveyor Status][appveyor-img]][appveyor-url]-->
7+
[![codecov.io][codecov-img]][codecov-url]
48

5-
[![Coverage Status](https://coveralls.io/repos/bicycle1885/TranscodingStreams.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/bicycle1885/TranscodingStreams.jl?branch=master)
9+
TranscodingStreams.jl exports a type `TranscodingStream{C<:Codec,S<:IO}<:IO`
10+
which wraps `S<:IO` using `C<:Codec`. Codecs are exported from other packages
11+
listed below:
612

7-
[![codecov.io](http://codecov.io/github/bicycle1885/TranscodingStreams.jl/coverage.svg?branch=master)](http://codecov.io/github/bicycle1885/TranscodingStreams.jl?branch=master)
13+
- [CodecZlib.jl](https://github.com/bicycle1885/CodecZlib.jl)
14+
- `GzipCompression` (`GzipCompressionStream`)
15+
- `GzipDecompression` (`GzipDecompressionStream`)
16+
- `ZlibCompression` (`ZlibCompressionStream`)
17+
- `ZlibDecompression` (`ZlibDecompressionStream`)
18+
- `RawCompression` (`RawCompressionStream`)
19+
- `RawDecompression` (`RawDecompressionStream`)
20+
- [CodecZstd.jl](https://github.com/bicycle1885/CodecZstd.jl)
21+
- `ZstdCompression` (`ZstdCompressionStream`)
22+
- `ZstdDecompression` (`ZstdDecompressionStream`)
23+
24+
The following snippet is an example of using CodecZlib.jl, which exports
25+
`GzipDecompressionStream` as an alias of
26+
`TranscodingStream{GzipDecompression,S}` where `S<:IO`:
27+
28+
```julia
29+
using CodecZlib
30+
stream = GzipDecompressionStream(open("data.gzip"))
31+
for line in eachline(stream)
32+
# do something...
33+
end
34+
close(stream)
35+
```
36+
37+
[travisci-img]: https://travis-ci.org/bicycle1885/TranscodingStreams.jl.svg?branch=master
38+
[travisci-url]: https://travis-ci.org/bicycle1885/TranscodingStreams.jl
39+
[codecov-img]: http://codecov.io/github/bicycle1885/TranscodingStreams.jl/coverage.svg?branch=master
40+
[codecov-url]: http://codecov.io/github/bicycle1885/TranscodingStreams.jl?branch=master

0 commit comments

Comments
 (0)