class Yajl::Deflate::StreamWriter
A wrapper around the Zlib::Deflate class for easier JSON stream parsing
def self.encode(obj, io)
A helper method for one-off encoding to a deflate-compressed stream
def self.encode(obj, io) Yajl::Encoder.new.encode(obj, new(io)) end
def write(str)
def write(str) deflate(str) str.size unless str.nil? end