public void close() {
        if (closable) {
            printWriter.close();
        } else {
            printWriter.flush();
        }
    }
Print customized output with given writer. The {@link OutputStream} can be {@link System#out} or the others.

@param outputStream The output stream to write to.
@param mapper The mapper which can allow user to customize output will be printed.
@param label The given name will be printed.
streams/src/main/java/org/apache/kafka/streams/kstream/internals/PrintForeachAction.java