| Class | Thrift::IOStreamTransport |
| In: |
ruby/lib/thrift/transport/io_stream_transport.rb
|
| Parent: | BaseTransport |
# File ruby/lib/thrift/transport/io_stream_transport.rb, line 28
28: def initialize(input, output)
29: @input = input
30: @output = output
31: end
# File ruby/lib/thrift/transport/io_stream_transport.rb, line 36
36: def close; @input.close; @output.close end
# File ruby/lib/thrift/transport/io_stream_transport.rb, line 33
33: def open?; not @input.closed? or not @output.closed? end
# File ruby/lib/thrift/transport/io_stream_transport.rb, line 34
34: def read(sz); @input.read(sz) end