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
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
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
Reference
Object
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.
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32> 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.
Flushes the wrapped IO.
TODO Add return type restriction Nil
Rewinds the wrapped IO.
TODO Add return type restriction Nil
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/Compress/Deflate/Reader.html