Macadamian/titanium_mobile — pull request #144 by dlifshitz-maca (2012-08-30 18:16:00+00:00)
Title: (final) TIMOB-9543: BlackBerry: Implement Ti.BufferStream

Reviewer: Harut

```
[Issues Fixed]
(final) TIMOB-9543: BlackBerry: Implement Ti.BufferStream

[Changes]
BufferStream.yml, Stream.yml
- updated

TiConstants.h
- alphabetized
- added TI_OPEN_MODE

TiStreamObject.cpp
- function onCreateStaticMembers
- added modes
- function _createStream
- make sure the mode property exists
- if MODE_APPEND, set the pos to the correct value

bootstrap.js
- Ti.BufferStream
- added functions isReadable, isWriteable, write
- function read
- check mode
- require both offset and length if either exist

[Tests]
Test 1: Run test code
1) Use the app.js attached to the jira
2) Verify the correct parts of the stream are read/written, appended to the buffer, for each length specified, and that the number of bytes match
```