All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.crp.flowable.shell.utils.JsonNodeResultHandler Maven / Gradle / Ivy

The newest version!
package org.crp.flowable.shell.utils;

import com.fasterxml.jackson.databind.JsonNode;
import org.jline.terminal.Terminal;
import org.springframework.shell.result.TerminalAwareResultHandler;

public class JsonNodeResultHandler extends TerminalAwareResultHandler {

    public JsonNodeResultHandler(Terminal terminal) {
        super(terminal);
    }

    @Override
    protected void doHandleResult(JsonNode jsonNode) {
        this.terminal.writer().println(jsonNode.toPrettyString());
        this.terminal.writer().flush();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy