Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 725 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 725 Bytes

toml4j

toml4j is a TOML 0.4.0 parser for Java.

Forked from:

https://github.com/mwanji/toml4j

Installation

Add the following dependency to your POM (or equivalent for other dependency managers):

<dependency>
  <groupId>com.moandjiezana.toml</groupId>
  <artifactId>toml4j</artifactId>
  <version>${version}</version>
</dependency>

Requires Java 1.6 or above.

Quick start

Toml toml = new Toml().read(getTomlFile());
String someValue = toml.getString("someKey");
Date someDate = toml.getDate("someTable.someDate");
MyClass myClass = toml.to(MyClass.class);

License

Licensed under the MIT License