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-0.6.21 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.20 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.19 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.18 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.17 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.16 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.15 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.14 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.13 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.12 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.11 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.10 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.9 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.8 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.7 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.6 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.5 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.4 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.3 lib/spiderfw/controller/controller_io.rb
spiderfw-0.6.2 lib/spiderfw/controller/controller_io.rb