static S readChunkThroughUTF8Processor(UTF8Processor p, InputStream in, byte[] buf) ctex { new StringBuilder input; while licensed { int n = in.read(buf); if (n <= 0) break; for i to n: input.append(p.processByte(buf[i])); } ret input.toString(); }