From 75139375b76cb277546da2429d8e983ca6758f61 Mon Sep 17 00:00:00 2001 From: Rogan Creswick Date: Wed, 2 Jan 2013 14:56:40 -0800 Subject: added addon-sdk-1.7, without any changes --- .../packages/api-utils/docs/byte-streams.md | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 tools/addon-sdk-1.7/packages/api-utils/docs/byte-streams.md (limited to 'tools/addon-sdk-1.7/packages/api-utils/docs/byte-streams.md') diff --git a/tools/addon-sdk-1.7/packages/api-utils/docs/byte-streams.md b/tools/addon-sdk-1.7/packages/api-utils/docs/byte-streams.md new file mode 100644 index 0000000..1238cd8 --- /dev/null +++ b/tools/addon-sdk-1.7/packages/api-utils/docs/byte-streams.md @@ -0,0 +1,68 @@ + + + + + +The `byte-streams` module provides streams for reading and writing bytes. + + +@class + +@constructor + Creates a binary input stream that reads bytes from a backing stream. +@param inputStream {stream} + The backing stream, an nsIInputStream. + + +@property {boolean} + True if the stream is closed. + + + +@method + Closes both the stream and its backing stream. If the stream is already + closed, an exception is thrown. + + + +@method + Reads a string from the stream. If the stream is closed, an exception is + thrown. +@param [numBytes] {number} + The number of bytes to read. If not given, the remainder of the entire stream + is read. +@returns {string} + A string containing the bytes read. If the stream is at the end, returns the + empty string. + + + + +@class + +@constructor + Creates a binary output stream that writes bytes to a backing stream. +@param outputStream {stream} + The backing stream, an nsIOutputStream. + + +@property {boolean} + True if the stream is closed. + + +@method + Closes both the stream and its backing stream. If the stream is already + closed, an exception is thrown. + + +@method + Writes a string to the stream. If the stream is closed, an exception is + thrown. +@param str {string} + The string to write. + + -- cgit v1.2.3