code: public void classifyAndWriteAnswers(String testFile, OutputStream outStream,
                                        DocumentReaderAndWriter<IN> readerWriter)
      throws IOException
    {
      ObjectBank<List<IN>> documents =
        makeObjectBankFromFile(testFile, readerWriter);
      PrintWriter pw = IOUtils.encodedOutputStreamPrintWriter(outStream, flags.outputEncoding, true);
      classifyAndWriteAnswers(documents, pw, readerWriter);
    }
docs: If the flag
  <code>outputEncoding</code> is defined, the output is written in that
  character encoding, otherwise in the system default character encoding.