Class: WritableStream

gpf.wscript. WritableStream


new WritableStream()

Wraps a file object from FileSystemObject into a IWritableStream

Since:
  • 0.1.9
Implements:

Extends

Methods


close()

Close the stream

Since:
  • 0.1.9
Inherited From:
Returns:

Resolved when closed

Type
Promise

write(data)

Write data to the underlying destination

Parameters:
Name Type Description
data *

Data to write

Since:
  • 0.1.9
Implements:
Returns:

Resolved when ready

Type
Promise