Examples of writeTree()


Examples of com.fasterxml.jackson.core.JsonGenerator.writeTree()

        ObjectMapper op= new ObjectMapper();
        JsonNode p = op.readTree(st);
        Logger.debug("OBJECT:" + p.toString());
        Logger.debug("STRING:" + st);
        //JsonParser jp = jfactory.createJsonParser(st);
        gen.writeTree(p);
      }
      gen.writeEndArray();
      gen.close();
      return sw.toString();
    }catch (Exception e) {
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.writeTree()

    ObjectMapper mapper = dataFormat.getConfiguredObjectMapper();
    JsonFactory factory = mapper.getFactory();

    try {
      JsonGenerator generator = factory.createGenerator(outputStream);
      mapper.writeTree(generator, jsonNode);
    } catch (IOException e) {
      throw LOG.unableToWriteJsonNode(e);
    }

    return outputStream;
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.writeTree()

    ObjectMapper mapper = dataFormat.getConfiguredObjectMapper();
    JsonFactory factory = mapper.getFactory();

    try {
      JsonGenerator generator = factory.createGenerator(writer);
      mapper.writeTree(generator, jsonNode);
    } catch (IOException e) {
      throw LOG.unableToWriteJsonNode(e);
    }

    return writer;
View Full Code Here

Examples of net.sourceforge.processdash.ui.lib.HTMLTreeTableWriter.writeTree()

        writer.setTreeName(namespace + "t");
        writer.setExpandAllTooltip(resources.getHTML("Report.Expand_All_Tooltip"));
        writer.setTableAttributes("class='needsTreeSortLinks' id='" + namespace
                + "task' border='1'");
        writer.setShowDepth(Settings.getInt("ev.showHierarchicalDepth", 3) - 1);
        writer.writeTree(out, tree);
    }
   
    void writeScheduleTable(EVSchedule s) throws IOException {
        HTMLTableWriter writer = new HTMLTableWriter();
        customizeTableWriter(writer, s, s.getColumnTooltips());
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeTree()

        try {
            JsonFactory jsonFactory = getJsonFactory();
            StringWriter sw = new StringWriter();
            JsonGenerator generator = jsonFactory.createJsonGenerator(sw);
            JsonNode node = parser.readValueAs(JsonNode.class);
            generator.writeTree(node);
            return sw.toString();
        } catch (IOException e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeTree()

    public static void write(JsonNode node, OutputStream out) {
        try {
            JsonFactory jsonFactory = getJsonFactory();
            JsonGenerator generator = jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
            generator.writeTree(node);
        } catch (IOException e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeTree()

    public static void write(JsonParser parser, OutputStream out) {
        try {
            JsonFactory jsonFactory = getJsonFactory();
            JsonGenerator generator = jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
            JsonNode node = parser.readValueAs(JsonNode.class);
            generator.writeTree(node);
        } catch (IOException e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeTree()

        try {
            JsonFactory jsonFactory = getJsonFactory();
            StringWriter sw = new StringWriter();
            JsonGenerator generator = jsonFactory.createJsonGenerator(sw);
            JsonNode node = parser.readValueAs(JsonNode.class);
            generator.writeTree(node);
            return sw.toString();
        } catch (IOException e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeTree()

    public static void write(JsonNode node, OutputStream out) {
        try {
            JsonFactory jsonFactory = getJsonFactory();
            JsonGenerator generator = jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
            generator.writeTree(node);
        } catch (IOException e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.writeTree()

    public static void write(JsonParser parser, OutputStream out) {
        try {
            JsonFactory jsonFactory = getJsonFactory();
            JsonGenerator generator = jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8);
            JsonNode node = parser.readValueAs(JsonNode.class);
            generator.writeTree(node);
        } catch (IOException e) {
            throw new IllegalArgumentException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.