I would use a ByteArrayOutputStream. And on finish you can call:
new String( baos.toByteArray(), codepage );
or better baos.toString( codepage );
For the String constructor, the codepage can be a String or a syntax of java.nio.charset.Charset. A potential value is java.nio.charset.StandardCharsets.UTF_8.
The method toString takes only a String as code page parameter (stand Java 8).