Note writer options in the readme.

This commit is contained in:
Jonathan Wood 2015-06-28 14:15:38 -07:00
parent f3dca7d24f
commit 7ce548e616

View file

@ -252,6 +252,15 @@ anArray = [ 2, 3 ]
*/
```
You can exert some control over formatting. For example, you can change the default indentation, white space, and time zone:
```java
new TomlWriter().
wantTerseArrays(true).
setIndentationPolicy(new WriterIndentationPolicy().setTableIndent(2)).
setTimeZone(TimeZone.getTimeZone("UTC"));
```
See the `TomlWriter` class for more details.
### Limitations