Skip to content

Commit 9f37608

Browse files
committed
update docs
1 parent 2da95da commit 9f37608

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ TranscodingStreams.jl
66
[![TravisCI Status][travisci-img]][travisci-url]
77
[![codecov.io][codecov-img]][codecov-url]
88

9+
TranscodingStreams.jl is a package for transcoding data streams. Transcoding can
10+
be any codec. For example, following packages define lossless compression and
11+
decompression codecs:
12+
- [CodecZlib.jl](https://github.com/bicycle1885/CodecZlib.jl)
13+
- [CodecBzip2.jl](https://github.com/bicycle1885/CodecBzip2.jl)
14+
- [CodecXz.jl](https://github.com/bicycle1885/CodecXz.jl)
15+
- [CodecZstd.jl](https://github.com/bicycle1885/CodecZstd.jl)
16+
17+
Consult the [docs][docs-latest-url] for more details and examples.
18+
919
[travisci-img]: https://travis-ci.org/bicycle1885/TranscodingStreams.jl.svg?branch=master
1020
[travisci-url]: https://travis-ci.org/bicycle1885/TranscodingStreams.jl
1121
[codecov-img]: http://codecov.io/github/bicycle1885/TranscodingStreams.jl/coverage.svg?branch=master
1222
[codecov-url]: http://codecov.io/github/bicycle1885/TranscodingStreams.jl?branch=master
1323
[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
1424
[docs-latest-url]: https://bicycle1885.github.io/TranscodingStreams.jl/latest/
1525

16-
TranscodingStreams.jl is a package for transcoding data streams. Transcoding can
17-
be any codec. For example, following packages define lossless compression and
18-
decompression codecs:
19-
- [CodecZlib.jl](https://github.com/bicycle1885/CodecZlib.jl)
20-
- [CodecZstd.jl](https://github.com/bicycle1885/CodecZstd.jl)
21-
- [CodecBzip2.jl](https://github.com/bicycle1885/CodecBzip2.jl)
22-
- [CodecXz.jl](https://github.com/bicycle1885/CodecXz.jl)

docs/src/index.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,17 @@ Codecs are defined in other packages listed below:
104104
</tr>
105105
</table>
106106

107+
Install packages you need by calling `Pkg.add(<package name>)` in a Julia
108+
session. For example, if you want to read gzip-compressed files, call
109+
`Pkg.add("CodecZlib")` to use `GzipDecompression` or `GzipDecompressionStream`.
107110
By convention, codec types have a name that matches `.*(Co|Deco)mpression` and
108-
I/O types have a codec name with `Stream` suffix. An important thing is these
109-
packages depend on TranscodingStreams.jl and not *vice versa*. This means you
110-
can install any codec package you need without installing all codec packages.
111-
Also, if you want to define your own codec, it is totally feasible like these
112-
packages. TranscodingStreams.jl requests a codec to implement some interface
113-
functions which will be described later.
111+
I/O types have a codec name with `Stream` suffix. All codecs are a subtype
112+
`TranscodingStreams.Codec` and streams are a subtype of `Base.IO`. An important
113+
thing is these packages depend on TranscodingStreams.jl and not *vice versa*.
114+
This means you can install any codec package you need without installing all
115+
codec packages. Also, if you want to define your own codec, it is totally
116+
feasible like these packages. TranscodingStreams.jl requests a codec to
117+
implement some interface functions which will be described later.
114118

115119

116120
Examples

0 commit comments

Comments
 (0)