class Thrift::IOStreamTransport

Public Class Methods

new(input, output) click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
28 def initialize(input, output)
29   @input = input
30   @output = output
31 end

Public Instance Methods

close() click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
36 def close; @input.close; @output.close end
open?() click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
33 def open?; not @input.closed? or not @output.closed? end
read(sz) click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
34 def read(sz); @input.read(sz) end
to_io() click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
37 def to_io; @input end
to_s() click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
38 def to_s
39   "iostream(input=#{@input.to_s},output=#{@output.to_s})"
40 end
write(buf) click to toggle source
   # File lib/thrift/transport/io_stream_transport.rb
35 def write(buf); @output.write(Bytes.force_binary_encoding(buf)) end