stream-from-string
Creates a stream from a string using the supplied encoding. The content type supplied as argument is associated to the stream. This type of stream is not automatically saved as a file.
Signature
stream-from-string(string:string, encoding:string="UTF-8", contenttype:string=contenttype=text/plain) -> stream |
Parameters
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 |