Class Thrift::IOStreamTransport
In: lib/thrift/transport/io_stream_transport.rb
lib/thrift/transport/io_stream_transport.rb
Parent: BaseTransport

Methods

close   close   new   new   open?   open?   read   read   to_io   to_io   write   write  

Public Class methods

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 28
28:     def initialize(input, output)
29:       @input = input
30:       @output = output
31:     end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 28
28:     def initialize(input, output)
29:       @input = input
30:       @output = output
31:     end

Public Instance methods

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 36
36:     def close; @input.close; @output.close end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 36
36:     def close; @input.close; @output.close end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 33
33:     def open?; not @input.closed? or not @output.closed? end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 33
33:     def open?; not @input.closed? or not @output.closed? end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 34
34:     def read(sz); @input.read(sz) end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 34
34:     def read(sz); @input.read(sz) end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 37
37:     def to_io; @input end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 37
37:     def to_io; @input end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 35
35:     def write(buf); @output.write(Bytes.force_binary_encoding(buf)) end

[Source]

    # File lib/thrift/transport/io_stream_transport.rb, line 35
35:     def write(buf); @output.write(Bytes.force_binary_encoding(buf)) end

[Validate]