Toml4jWriter

class Toml4jWriter

<p>Converts Objects to TOML</p>

<p>An input Object can comprise arbitrarily nested combinations of Java primitive types, other {@link Object}s, {@link Map}s, {@link List}s, and Arrays. {@link Object}s and {@link Map}s are output to TOML tables, and {@link List}s and Array to TOML arrays.</p>

<p>Example usage:</p> <pre><code> class AClass { int anInt = 1; int[] anArray = { 2, 3 }; }

String tomlString = new TomlWriter().write(new AClass()); </code></pre>

Constructors

Toml4jWriter
Link copied to clipboard
fun Toml4jWriter()

Functions

write
Link copied to clipboard
fun write(from: Any): String
Write an Object into TOML String.
fun write(from: Any, target: Writer)
Write an Object in TOML to a Writer.

Sources

jvm source
Link copied to clipboard