...
This noncompliant code example attempts to read 1024 bytes encoded in UTF-8 from an InputStream and to return them as a String. It explicitly specifies the the encoding to build the string, in compliance with IDS14IDS13-J. Use compatible encodings on both sides of file or network IO.
...