Class: WritableStream

gpf.node. WritableStream


new WritableStream(stream [, close])

Wraps a writable stream from NodeJS into a IWritableStream

Parameters:
Name Type Argument Description
stream Object

NodeJS stream object

close function <optional>

Close handler

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