Sha256: b0c6fdf053a05fe1e62e852bc9b55ac2704d8e30479ce6a7b5efd927fff0efa9

Contents?: true

Size: 416 Bytes

Versions: 36

Compression:

Stored size: 416 Bytes

Contents

# encoding: UTF-8
module Yajl
  module Bzip2
    # A wrapper around the Bzip2::Writer class for easier JSON stream encoding
    class StreamWriter < ::Bzip2::Writer
      
      # A helper method for encoding to a bzip2-compressed stream
      #
      # Look up Yajl::Encoder#encode for parameter documentation
      def self.encode(obj, io)
        Yajl::Encoder.new.encode(obj, new(io))
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 5 rubygems

Version Path
brianmario-yajl-ruby-0.5.10 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.11 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.12 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.3 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.4 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.5 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.6 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.7 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.8 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.5.9 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.6.0 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.6.1 lib/yajl/bzip2/stream_writer.rb
brianmario-yajl-ruby-0.6.3 lib/yajl/bzip2/stream_writer.rb
jdg-yajl-ruby-0.5.12 lib/yajl/bzip2/stream_writer.rb
oortle-yajl-ruby-0.5.8 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-0.7.1 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-0.7.0 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-0.6.9 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-0.6.8 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-0.6.7 lib/yajl/bzip2/stream_writer.rb