Extends stream.Readable
Constructor
new StringStream()
Method Index
| Name | Description |
|---|---|
| _read | Will push the input string and then `null` to indicate EOF. |
Member Details
- _read()
-
Will push the input string and then
nullto indicate EOF.
Implementation of a stream-over-string class (a Readable with a string as input source) that can be used with Platformrecordmanager.
Used to supply SGML data from <literal> system identifiers.
The base construction is described eg. in the StackOverflow article linked to below; could use the following code instead
var stringstream = new stream.Readable()
stringstream._read = function noop() {}
stringstream.push(this.input_string)
stringstream.push(null)
but this is factored out into a separate class
and also honors the Readable contract (eg. not pushing
further data if previous push() returned false).
Extends stream.Readable
| Name | Description |
|---|---|
| _read | Will push the input string and then `null` to indicate EOF. |
Will push the input string and then null to indicate
EOF.