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

net.sourceforge.plantuml.json.WriterConfig Maven / Gradle / Ivy

There is a newer version: 1.2025.0
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.json;

import java.io.Writer;

/**
 * Controls the formatting of the JSON output. Use one of the available
 * constants.
 */
public abstract class WriterConfig {

	/**
	 * Write JSON in its minimal form, without any additional whitespace. This is
	 * the default.
	 */
	public static WriterConfig MINIMAL = new WriterConfig() {
		@Override
		JsonWriter createWriter(Writer writer) {
			return new JsonWriter(writer);
		}
	};

	/**
	 * Write JSON in pretty-print, with each value on a separate line and an
	 * indentation of two spaces.
	 */
	public static WriterConfig PRETTY_PRINT = PrettyPrint.indentWithSpaces(2);

	abstract JsonWriter createWriter(Writer writer);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy