Titanium.Stream

Submodule of Titanium.
Platform Since
Android 1.7
iPhone 1.7
iPad 1.7

Summary

Stream module containing stream utility methods

Methods

Name Summary
addEventListener

Adds the specified callback as an event listener for the named event.

createStream

Creates stream from specified container. Returns Titanium.BufferStream or Titanium.BlobStream depending on whether a Buffer or Blob is provided as the 'source' property in params. Write and append mode only applies to Buffer as Blob is read only.

fireEvent

Fires a synthesized event to any registered listeners.

pump

Pumps data from input stream to handler method

pump

Variant of pump that allows for setting the async mode

read

Async version of read on Titanium.IOStream

read

Async version of read on Titanium.IOStream that takes offset and length

readAll

reads all data from Titanium.IOStream

readAll

Async version of readAll

removeEventListener

Removes the specified callback as an event listener for the named event.

write

Async version of write on Titanium.IOStream

write

Async version of write on Titanium.IOStream that takes offset and length

writeStream

Writes all data from input stream to output stream

writeStream

Async version of writeStream

Properties

Name Type Summary
MODE_APPEND Number

append mode value. read-only

MODE_READ Number

read only mode value read-only

MODE_WRITE Number

write mode value read-only

Events

This type has no events.