Package com.fasterxml.jackson.core.util

Examples of com.fasterxml.jackson.core.util.DefaultPrettyPrinter


  /**
   * Initialize a default RestSpecCodec.
   */
  public RestSpecCodec()
  {
    _template_codec.setPrettyPrinter(new DefaultPrettyPrinter());
  }
View Full Code Here


public class PrettyPrinterJacksonDataTemplateCodec extends JacksonDataTemplateCodec
{
  public PrettyPrinterJacksonDataTemplateCodec()
  {
    super();
    setPrettyPrinter(new DefaultPrettyPrinter());
  }
View Full Code Here

  }

  public PrettyPrinterJacksonDataTemplateCodec(JsonFactory jsonFactory)
  {
    super(jsonFactory);
    setPrettyPrinter(new DefaultPrettyPrinter());
  }
View Full Code Here

public class PrettyPrinterJacksonDataCodec extends JacksonDataCodec
{
  public PrettyPrinterJacksonDataCodec()
  {
    super();
    setPrettyPrinter(new DefaultPrettyPrinter());
  }
View Full Code Here

  }

  public PrettyPrinterJacksonDataCodec(JsonFactory jsonFactory)
  {
    super(jsonFactory);
    setPrettyPrinter(new DefaultPrettyPrinter());
  }
View Full Code Here

        File outputFile = new File(outputDirectory, finalName + "-changes.json");

        JsonFactory factory = new JsonFactory();
        try {
            JsonGenerator generator = factory.createJsonGenerator(outputFile, JsonEncoding.UTF8);
            generator.setPrettyPrinter(new DefaultPrettyPrinter());
            try {
                generator.writeStartObject();
                generator.writeFieldName("dependencies");
                writeDependenciesDelta(addedDeps, removedDeps, updatedDeps, generator);
                if (changeLog != null) {
View Full Code Here

         *  pretty printer if one already assigned.
         */
        if (getPrettyPrinter() != null) {
            return this;
        }
        return setPrettyPrinter(new DefaultPrettyPrinter());
    }
View Full Code Here

     * Method that will construct a new instance that will use the default
     * pretty printer for serialization.
     */
    public ObjectWriter withDefaultPrettyPrinter()
    {
        return with(new DefaultPrettyPrinter());
    }
View Full Code Here

         *  pretty printer if one already assigned.
         */
        if (getPrettyPrinter() != null) {
            return this;
        }
        return setPrettyPrinter(new DefaultPrettyPrinter());
    }
View Full Code Here

    }

    protected JsonGenerator getJsonGenerator(Set<URI> flags, Writer writer) throws IOException {
        JsonGenerator g = getJsonFactory(flags).createJsonGenerator(writer);
        if (flags.contains(RepresentationFactory.PRETTY_PRINT)) {
            g.setPrettyPrinter(new DefaultPrettyPrinter());
        }
        return g;
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.core.util.DefaultPrettyPrinter

Copyright © 2018 www.massapicom. 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.