@@ -21,7 +21,7 @@ Introduction
21
21
the actual type should be written as ` TranscodingStream{C<:Codec,S<:IO} ` . This
22
22
type wraps an underlying I/O stream ` S ` by a codec ` C ` . The codec defines
23
23
transformation (or transcoding) of the stream. For example, when ` C ` is a
24
- lossless decompression type and ` S ` is a file, ` TranscodingStream{C,S} ` behaves
24
+ lossless decompressor type and ` S ` is a file, ` TranscodingStream{C,S} ` behaves
25
25
like a data stream that incrementally decompresses data from the file.
26
26
27
27
Codecs are defined in other packages listed below:
@@ -40,74 +40,74 @@ Codecs are defined in other packages listed below:
40
40
<td rowspan="6"><a href="https://github.com/bicycle1885/CodecZlib.jl">CodecZlib.jl</a></td>
41
41
<td rowspan="6"><a href="http://zlib.net/">zlib</a></td>
42
42
<td rowspan="2"><a href="https://tools.ietf.org/html/rfc1952">RFC1952</a></td>
43
- <td><code>GzipCompression </code></td>
44
- <td><code>GzipCompressionStream </code></td>
43
+ <td><code>GzipCompressor </code></td>
44
+ <td><code>GzipCompressorStream </code></td>
45
45
<td>Compress data in gzip (.gz) format.</td>
46
46
</tr>
47
47
<tr>
48
- <td><code>GzipDecompression </code></td>
49
- <td><code>GzipDecompressionStream </code></td>
48
+ <td><code>GzipDecompressor </code></td>
49
+ <td><code>GzipDecompressorStream </code></td>
50
50
<td>Decompress data in gzip (.gz) format.</td>
51
51
</tr>
52
52
<tr>
53
53
<td rowspan="2"><a href="https://tools.ietf.org/html/rfc1950">RFC1950</a></td>
54
- <td><code>ZlibCompression </code></td>
55
- <td><code>ZlibCompressionStream </code></td>
54
+ <td><code>ZlibCompressor </code></td>
55
+ <td><code>ZlibCompressorStream </code></td>
56
56
<td>Compress data in zlib format.</td>
57
57
</tr>
58
58
<tr>
59
- <td><code>ZlibDecompression </code></td>
60
- <td><code>ZlibDecompressionStream </code></td>
59
+ <td><code>ZlibDecompressor </code></td>
60
+ <td><code>ZlibDecompressorStream </code></td>
61
61
<td>Decompress data in zlib format.</td>
62
62
</tr>
63
63
<tr>
64
64
<td rowspan="2"><a href="https://tools.ietf.org/html/rfc1951">RFC1951</a></td>
65
- <td><code>DeflateCompression </code></td>
66
- <td><code>DeflateCompressionStream </code></td>
65
+ <td><code>DeflateCompressor </code></td>
66
+ <td><code>DeflateCompressorStream </code></td>
67
67
<td>Compress data in deflate format.</td>
68
68
</tr>
69
69
<tr>
70
- <td><code>DeflateDecompression </code></td>
71
- <td><code>DeflateDecompressionStream </code></td>
70
+ <td><code>DeflateDecompressor </code></td>
71
+ <td><code>DeflateDecompressorStream </code></td>
72
72
<td>Decompress data in deflate format.</td>
73
73
</tr>
74
74
<tr>
75
75
<td rowspan="2"><a href="https://github.com/bicycle1885/CodecBzip2.jl">CodecBzip2.jl</a></td>
76
76
<td rowspan="2"><a href="http://www.bzip.org/">bzip2</a></td>
77
77
<td rowspan="2"></td>
78
- <td><code>Bzip2Compression </code></td>
79
- <td><code>Bzip2CompressionStream </code></td>
78
+ <td><code>Bzip2Compressor </code></td>
79
+ <td><code>Bzip2CompressorStream </code></td>
80
80
<td>Compress data in bzip2 (.bz2) format.</td>
81
81
</tr>
82
82
<tr>
83
- <td><code>Bzip2Decompression </code></td>
84
- <td><code>Bzip2DecompressionStream </code></td>
83
+ <td><code>Bzip2Decompressor </code></td>
84
+ <td><code>Bzip2DecompressorStream </code></td>
85
85
<td>Decompress data in bzip2 (.bz2) format.</td>
86
86
</tr>
87
87
<tr>
88
88
<td rowspan="2"><a href="https://github.com/bicycle1885/CodecXz.jl">CodecXz.jl</a></td>
89
89
<td rowspan="2"><a href="https://tukaani.org/xz/">xz</a></td>
90
90
<td rowspan="2"><a href="https://tukaani.org/xz/xz-file-format.txt">The .xz File Format</a></td>
91
- <td><code>XzCompression </code></td>
92
- <td><code>XzCompressionStream </code></td>
91
+ <td><code>XzCompressor </code></td>
92
+ <td><code>XzCompressorStream </code></td>
93
93
<td>Compress data in xz (.xz) format.</td>
94
94
</tr>
95
95
<tr>
96
- <td><code>XzDecompression </code></td>
97
- <td><code>XzDecompressionStream </code></td>
96
+ <td><code>XzDecompressor </code></td>
97
+ <td><code>XzDecompressorStream </code></td>
98
98
<td>Decompress data in xz (.xz) format.</td>
99
99
</tr>
100
100
<tr>
101
101
<td rowspan="2"><a href="https://github.com/bicycle1885/CodecZstd.jl">CodecZstd.jl</a></td>
102
102
<td rowspan="2"><a href="http://facebook.github.io/zstd/">zstd</a></td>
103
- <td rowspan="2"><a href="https://github.com/facebook/zstd/blob/dev/doc/zstd_compression_format .md">Zstandard Compression Format</a></td>
104
- <td><code>ZstdCompression </code></td>
105
- <td><code>ZstdCompressionStream </code></td>
103
+ <td rowspan="2"><a href="https://github.com/facebook/zstd/blob/dev/doc/zstd_compressor_format .md">Zstandard Compressor Format</a></td>
104
+ <td><code>ZstdCompressor </code></td>
105
+ <td><code>ZstdCompressorStream </code></td>
106
106
<td>Compress data in zstd (.zst) format.</td>
107
107
</tr>
108
108
<tr>
109
- <td><code>ZstdDecompression </code></td>
110
- <td><code>ZstdDecompressionStream </code></td>
109
+ <td><code>ZstdDecompressor </code></td>
110
+ <td><code>ZstdDecompressorStream </code></td>
111
111
<td>Decompress data in zstd (.zst) format.</td>
112
112
</tr>
113
113
<tr>
@@ -148,7 +148,7 @@ Codecs are defined in other packages listed below:
148
148
149
149
Install packages you need by calling ` Pkg.add(<package name>) ` in a Julia
150
150
session. For example, if you want to read gzip-compressed files, call
151
- ` Pkg.add("CodecZlib") ` to use ` GzipDecompression ` or ` GzipDecompressionStream ` .
151
+ ` Pkg.add("CodecZlib") ` to use ` GzipDecompressor ` or ` GzipDecompressorStream ` .
152
152
By convention, codec types have a name that matches ` .*(Co|Deco)mpression ` and
153
153
I/O types have a codec name with ` Stream ` suffix. All codecs are a subtype
154
154
` TranscodingStreams.Codec ` and streams are a subtype of ` Base.IO ` . An important
@@ -163,7 +163,7 @@ Error handling
163
163
--------------
164
164
165
165
You may encounter an error while processing data with this package. For example,
166
- your compressed data may be corrupted or truncated and the decompression codec
166
+ your compressed data may be corrupted or truncated and the decompressor codec
167
167
cannot handle it properly. In this case, the codec informs the stream of the
168
168
error and the stream goes to an unrecoverable mode. In this mode, the only
169
169
possible operations are ` isopen ` and ` close ` . Other operations, such as ` read `
0 commit comments