We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f178df6 commit 75ec995Copy full SHA for 75ec995
docs/src/examples.md
@@ -28,6 +28,21 @@ open(GzipDecompressionStream, "data.txt.gz") do stream
28
end
29
```
30
31
+Read compressed data from a pipe
32
+--------------------------------
33
+
34
+The input is not limited to usual files. You can read data from a pipe
35
+(actually, any `IO` object that implements basic I/O methods) as follows:
36
+```julia
37
+using CodecZlib
38
+pipe, proc = open(`cat some.data.gz`)
39
+stream = GzipDecompressionStream(pipe)
40
+for line in eachline(stream)
41
+ # do something...
42
+end
43
+close(stream) # This will finish the process as well.
44
+```
45
46
Save a data matrix with Zstd compression
47
----------------------------------------
48
0 commit comments