![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.json.WriterConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// 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