Class: Thrift::IOStreamTransport

### Home Classes Methods

### In Files

- lib/thrift/transport/io_stream_transport.rb

### Parent

Thrift::BaseTransport

### Methods

- ::new
- #close
- #open?
- #read
- #to_io
- #write

### Files

- CHANGELOG
- README
- Makefile

### Class/Module Index

Quicksearch

- Thrift
- Thrift::ApplicationException
- Thrift::BaseProtocol
- Thrift::BaseProtocolFactory
- Thrift::BaseServer
- Thrift::BaseServerTransport
- Thrift::BaseTransport
- Thrift::BaseTransportFactory
- Thrift::BinaryProtocol
- Thrift::BinaryProtocolAcceleratedFactory
- Thrift::BinaryProtocolFactory
- Thrift::BufferedTransport
- Thrift::BufferedTransportFactory
- Thrift::Client
- Thrift::CompactProtocol
- Thrift::CompactProtocol::CompactTypes
- Thrift::CompactProtocolFactory
- Thrift::Deserializer
- Thrift::Exception
- Thrift::FramedTransport
- Thrift::FramedTransportFactory
- Thrift::HTTPClientTransport
- Thrift::IOStreamTransport
- Thrift::MemoryBufferTransport
- Thrift::MessageTypes
- Thrift::MongrelHTTPServer
- Thrift::MongrelHTTPServer::Handler
- Thrift::NonblockingServer
- Thrift::Processor
- Thrift::ProtocolException
- Thrift::Serializer
- Thrift::ServerSocket
- Thrift::SimpleServer
- Thrift::Socket
- Thrift::Struct
- Thrift::Struct_Union
- Thrift::ThreadPoolServer
- Thrift::ThreadedServer
- Thrift::TransportException
- Thrift::TransportUtils
- Thrift::TypeError
- Thrift::Types
- Thrift::UNIXServerSocket
- Thrift::UNIXSocket
- Thrift::Union
- Fixnum

No matching classes.

# Thrift::IOStreamTransport

### Public Class Methods

new(input, output) click to toggle source

    # File lib/thrift/transport/io_stream_transport.rb, line 27
    def initialize(input, output)
      @input = input
      @output = output
    end

### Public Instance Methods

close() click to toggle source

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

open?() click to toggle source

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

read(sz) click to toggle source

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

to_io() click to toggle source

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

write(buf) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.