Class: StringOutputStream

Inherits:
Object show all
Defined in:
lib/ontomde-core/helper.rb

Overview

Internal use.

Used by mtk_stringWriteSession.

Instance Method Summary collapse

Constructor Details

#initializeStringOutputStream

Returns a new instance of StringOutputStream.



636
637
638
# File 'lib/ontomde-core/helper.rb', line 636

def initialize
  @str=nil
end

Instance Method Details

#closeObject

Internal use.

Simulates file open



648
# File 'lib/ontomde-core/helper.rb', line 648

def close ; end

#openObject

Internal use.

Simulates file open



643
# File 'lib/ontomde-core/helper.rb', line 643

def open ; end

#to_sObject

Internal use. returns the internal stream buffer



664
665
666
# File 'lib/ontomde-core/helper.rb', line 664

def to_s
  return @str
end

#write(str) ⇒ Object

Internal use.

Appends str to internal steam buffer



653
654
655
656
657
658
659
660
# File 'lib/ontomde-core/helper.rb', line 653

def write (str)
  #log.debug "Ajout #{str.to_s} !!"
  if @str
    @str="#{@str}#{str.to_s}"
  else
    @str=str.to_s
  end
end