Qore Programming Language Reference Manual
0.8.12.3
|
This class implements the InputStream interface for reading bytes from a String variable. More...
Public Member Functions | |
constructor (string src) | |
Creates the StringInputStream based on the String given. More... | |
string | getEncoding () |
Returns the character encoding for the StringInputStream. More... | |
*binary | read (int limit) |
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream. More... | |
![]() | |
constructor () | |
Constructor. More... | |
This class implements the InputStream interface for reading bytes from a String variable.
Qore::StringInputStream::constructor | ( | string | src | ) |
Creates the StringInputStream based on the String given.
src | the String to read bytes from |
string Qore::StringInputStream::getEncoding | ( | ) |
Returns the character encoding for the StringInputStream.
Reads bytes (up to a specified limit) from the input stream; returns NOTHING if there are no more bytes in the stream.
limit | the maximum number of bytes to read |
Implements Qore::InputStream.