Class Guacamole.StringReader
Defined in: StringReader.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Guacamole.StringReader(stream)
A reader which automatically handles the given input stream, returning
strictly text data.
|
Field Attributes | Field Name and Description |
---|---|
<inner> |
The number of bytes remaining for the current codepoint.
|
<inner> |
The current codepoint value, as calculated from bytes read so far.
|
Event Attributes | Event Name and Description |
---|---|
onend()
Fired once this stream is finished and no further data will be written.
|
|
ontext(text)
Fired once for every blob of text data received.
|
Class Detail
Guacamole.StringReader(stream)
A reader which automatically handles the given input stream, returning
strictly text data. Note that this object will overwrite any installed event
handlers on the given Guacamole.InputStream.
- Parameters:
- {Guacamole.InputStream} stream
- The stream that data will be read from.
Field Detail
<inner>
{Number}
bytes_remaining
The number of bytes remaining for the current codepoint.
<inner>
{Number}
codepoint
The current codepoint value, as calculated from bytes read so far.
Event Detail
onend()
Fired once this stream is finished and no further data will be written.
ontext(text)
Fired once for every blob of text data received.
- Parameters:
- {String} text
- The data packet received.