Function readAllUtf8
stream
, assuming UTF-8 encoding.
Prototypes
string readAllUtf8( InputStream stream, bool sanitize, uint max_bytes );
Parameters
Returns
The full contents of the stream
, excluding a possible BOM, are returned as a UTF-8 string.
Throws
An exception is thrown if max_bytes
!= 0 and the stream
contains more than max_bytes
data.
If the sanitize
parameter is fals and the stream
contains invalid UTF-8 code sequences,
a UtfException is thrown.
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.