A read-only IO
object to decompress data in the DEFLATE format.
Instances of this class wrap another IO object. When you read from this instance instance, it reads data from the underlying IO, decompresses it, and returns it to the caller.
Creates an instance of Flate::Reader for the gzip format.
Creates an instance of Flate::Reader.
Creates an instance of Flate::Reader for the gzip format, yields it to the given block, and closes it at its end.
Creates a new reader from the given io, yields it to the given block, and closes it at its end.
Returns true
if this reader is closed.
Dictionary passed in the constructor
If #sync_close?
is true
, closing this IO will close the underlying IO.
If #sync_close?
is true
, closing this IO will close the underlying IO.
Closes this reader.
Flushes the wrapped IO
.
See IO#read
.
Rewinds the wrapped IO
.
IO::Buffered
IO
IO
Reference
Reference
Object
Object
Creates an instance of Flate::Reader for the gzip format. has written.
Creates an instance of Flate::Reader.
Creates an instance of Flate::Reader for the gzip format, yields it to the given block, and closes it at its end.
Creates a new reader from the given io, yields it to the given block, and closes it at its end.
If #sync_close?
is true
, closing this IO will close the underlying IO.
If #sync_close?
is true
, closing this IO will close the underlying IO.
Closes this reader.
Flushes the wrapped IO
.
Rewinds the wrapped IO
.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Compress/Deflate/Reader.html