void () { if (overridden != null && Thread.currentThread() != thread) { overridden.flush(); return; } if (line.size() > 0) { parser.notifyTextAvailable(StringUtil.convertLineSeparators(line.toString(StandardCharsets.UTF_8)), type); line = new ByteArrayOutputStream(); hasLineSeparator = false; } }