Class: SystemUniversal::StreamReader

### Home Classes Methods

### In Files

- lib/systemu.rb

### Parent

Object

### Methods

- ::new
- #join

### Class/Module Index

Quicksearch

- SystemUniversal
- SystemUniversal::StreamReader
- Object

No matching classes.

# SystemUniversal::StreamReader

### Public Class Methods

new(stream) click to toggle source

    # File lib/systemu.rb, line 300
    def initialize(stream)
      @data = ""
      @thread = Thread.new do
        reader = java.io.BufferedReader.new java.io.InputStreamReader.new(stream)

        while line = reader.read_line
          @data << line << "\n"
        end
      end
    end

### Public Instance Methods

join() click to toggle source

    # File lib/systemu.rb, line 311
    def join
      @thread.join
      @data
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.