Creates a stream from a string using the supplied encoding. The content type supplied as an argument is associated to the stream. This type of stream is not automatically saved as a file.
stream-from-string(string as string, encoding as string="UTF-8", contenttype as string=contenttype=text/plain) -> stream |
Name |
Type |
Description |
|---|---|---|
string |
string |
The string from which the stream should be created. |
encoding |
string |
Specifies the encoding to use. The default encoding is 'UTF-8'. |
contenttype |
string |
Specifies the contenttype to associate to the stream. The default is contenttype=text/plain |