Sha256: 658329e96fc1f7599eb73109515b2736534c99d0a282b3cf0d91f9b51c5aa8ea

Contents?: true

Size: 491 Bytes

Versions: 61

Compression:

Stored size: 491 Bytes

Contents

module Spider
    
    class ControllerIO < IO
        BUFSIZE = 1024*4
        
        def write
            raise NotImplementedError
        end
        
        def flush
            raise NotImplementedError
        end
        
        def set_body_io(io)
            if (io.is_a?(String))
                write(io)
            else
                while (buf = io.read(BUFSIZE))
                    write(buf)
                end
            end
        end
        
    end
    
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-1.0.1 lib/spiderfw/controller/controller_io.rb
spiderfw-1.0.0 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.39 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.38 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.37 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.35 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.34 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.33 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.32 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.31 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.30 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.29 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.28 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.27 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.26 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.26.pre1 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.25 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.24 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.23 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.22 lib/spiderfw/controller/controller_io.rb