@Override
    public void stop() {
        if (outputStream != null && outputStream != System.out)
            outputStream.close();
    }
FileStreamSinkTask writes records to stdout or a file.
connect/file/src/main/java/org/apache/kafka/connect/file/FileStreamSinkTask.java