Class: StringOutputStream
Overview
Internal use.
Used by mtk_stringWriteSession.
Instance Method Summary collapse
-
#close ⇒ Object
Internal use.
-
#initialize ⇒ StringOutputStream
constructor
A new instance of StringOutputStream.
-
#open ⇒ Object
Internal use.
-
#to_s ⇒ Object
Internal use.
-
#write(str) ⇒ Object
Internal use.
Constructor Details
#initialize ⇒ StringOutputStream
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
#close ⇒ Object
Internal use.
Simulates file open
648 |
# File 'lib/ontomde-core/helper.rb', line 648 def close ; end |
#open ⇒ Object
Internal use.
Simulates file open
643 |
# File 'lib/ontomde-core/helper.rb', line 643 def open ; end |
#to_s ⇒ Object
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 |