OutputStream Class
Objects of this class represent a stream that can be used to send data to a peer. Use the openStream function to create these objects.
Methods
close
()
Closes the stream.
isInputStream
()
Returns false
.
isOutputStream
()
Returns true
.
write
(
-
params
Attempts to write the contents of the provided data buffer to the stream.
The streamWriteCompleted event is fired when the operation is completed.
Parameters:
-
params
Object-
buffer
TiBufferThe data to be written.
-
Properties
hasSpace
Boolean
read-only
Returns whether the stream can be written to.