Class: ReadableStream

gpf.java. ReadableStream


new ReadableStream(stream)

Wraps a readable stream from Rhino into a IReadableStream

Parameters:
Name Type Description
stream java.io.InputStream

Rhino stream object

Since:
  • 0.2.4
Implements:

Extends

Methods


close()

Close the stream

Since:
  • 0.2.4
Inherited From:
Returns:

Resolved when closed

Type
Promise

read(output)

Read all data from the underlying source. Chunk of data is passed to the gpf.interfaces.IWritableStream.

Parameters:
Name Type Description
output gpf.interfaces.IWritableStream

Stream that receives chunk of data

Since:
  • 0.2.4
Implements:
Returns:

Resolved when the stream has ended

Type
Promise