class Thrift::IOStreamTransport
Public Class Methods
Source
# File lib/thrift/transport/io_stream_transport.rb 29 def initialize(input, output) 30 @input = input 31 @output = output 32 end
Public Instance Methods
Source
# File lib/thrift/transport/io_stream_transport.rb 37 def close; @input.close; @output.close end
Source
# File lib/thrift/transport/io_stream_transport.rb 34 def open?; not @input.closed? or not @output.closed? end
Source
# File lib/thrift/transport/io_stream_transport.rb 35 def read(sz); @input.read(sz) end
Source
# File lib/thrift/transport/io_stream_transport.rb 40 def to_s 41 "iostream(input=#{@input},output=#{@output})" 42 end
Source
# File lib/thrift/transport/io_stream_transport.rb 36 def write(buf); @output.write(Bytes.force_binary_encoding(buf)) end