Class List Method List File List

# Class: VertxShell::OutputStream

Inherits:
  Object
  - Object
  - VertxShell::OutputStream
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/output_stream.rb

## Instance Method Summary (collapse)

- - (OutputStream) initialize(j_del) constructor
  A new instance of OutputStream.
- - (Object) j_del
- - (Object) write(data = nil)

## Constructor Details

### - (`OutputStream`) initialize(j_del)

Returns a new instance of OutputStream

    8
    9
    10
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/output_stream.rb', line 8

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) j_del

    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/output_stream.rb', line 13

    def j_del
      @j_del
    end

### - (`Object`) write(data = nil)

Raises:

- (`ArgumentError`)

    18
    19
    20
    21
    22
    23
    24
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/output_stream.rb', line 18

    def write(data=nil)
      if data.class == String && !block_given?
        @j_del.java_method(:write, [Java::java.lang.String.java_class]).call(data)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling write(data)"
    end