Commit graph

45 commits

Author SHA1 Message Date
moandji.ezana b1436c557d Rename Toml#containsKey() to containsPrimitive 2015-12-10 12:23:08 -04:00
moandji.ezana 4773638a12 Read files as UTF-8. Fixes https://github.com/mwanji/toml4j/issues/22 2015-08-15 02:12:44 +02:00
moandji.ezana d60736e104 Rename parse to read and ValueConverter to ValueReader 2015-08-14 11:12:08 +02:00
Jonathan Wood ec30be7901 Move Toml.write() to TomlWriter.
Add TomlWriter methods for writing to File, Writer, and OutputStream
targets.
2015-06-27 14:19:40 -07:00
Jonathan Wood acc952a572 Remove Toml.serialize(). 2015-06-27 13:11:52 -07:00
Jonathan Wood c076099ddd Use 'write' rather than 'serialize'.
Also refactor ValueWriter implementations into ValueConverter
implementations, where possible.
2015-06-27 12:50:15 -07:00
Jonathan Wood f8f55a6f16 Merge remote-tracking branch 'upstream/wip' into merge
Conflicts:
	README.md
	src/main/java/com/moandjiezana/toml/Toml.java
2015-06-24 21:49:24 -07:00
Jonathan Wood e7d7de7ae5 Implement serialization.
This provides functionality to convert populated Toml instances
and arbitrary objects into TOML.
2015-06-24 21:40:06 -07:00
moandji.ezana 38666593dd Added Toml#contains(String) and Toml#containsXxx(String) methods 2015-06-24 01:07:34 +02:00
moandji.ezana 4074242e0b Using a private implementation of Map.Entry instead of public Toml.Entry
class
2015-06-23 23:05:18 +02:00
moandji.ezana 68513b0851 Added to Toml#entrySet() documentation 2015-06-23 23:05:18 +02:00
moandji.ezana 15c014a327 Added documentation 2015-06-23 23:05:18 +02:00
moandji.ezana a0bd307f58 Added Toml#entrySet() 2015-06-23 23:05:18 +02:00
moandji.ezana ae2911c82c Toml#getTables() returns null for missing keys and indices 2015-04-29 22:10:30 +02:00
moandji.ezana 24a5134c2c getTable() and getTables() return null for missing keys 2015-04-29 21:46:22 +02:00
moandji.ezana a342b1fef6 Toml#getList() returns null if key is missing 2015-04-29 20:30:11 +02:00
moandji.ezana 4d32f77ce0 Removed Toml#to(Class, Gson) 2015-04-29 00:19:39 +02:00
moandji.ezana 439d1c600d Fixed typo 2015-03-30 22:46:13 +02:00
moandji.ezana d958baebb5 Added getArray(String, List) 2015-03-30 22:45:15 +02:00
Nick Jiang 414bd396fa Call original method to avoid duplicated work. 2015-03-27 10:13:09 +08:00
Nick Jiang bc04eec538 Returns the default value if the key was not found. 2015-03-26 16:50:48 +08:00
moandji.ezana ba98daeb85 Added Toml#isEmpty()
Added tests for navigation to non-existant keys
2015-02-13 09:09:05 +02:00
moandji.ezana be85328555 Javadoc improvements 2015-02-13 08:43:35 +02:00
moandji.ezana cdef758f4c Made TomlParser#run(String) static 2015-02-13 08:19:40 +02:00
moandji.ezana d32ead52d4 Improved error handling code and line numbers included in error messages 2015-02-09 16:29:20 +02:00
moandji.ezana 1bc8d4bcc5 Removed misc. section of change log. Added to CONTRIBUTING.md. Clarified
javadoc.

[ci skip]
2015-02-08 23:56:54 +02:00
moandji.ezana 4615ed50f7 Cleaned up warnings 2015-02-08 23:28:09 +02:00
Andreas Sinz 0baf7ea32e Removed unnecessary Class parameter from getList() 2015-02-08 11:23:57 +01:00
moandji.ezana df235e5a29 Added support for quoted keys with index arrays 2015-01-22 10:38:41 +02:00
moandji.ezana db950ab054 Added support for quoted keys
https://github.com/toml-lang/toml/pull/283
2015-01-14 09:46:36 +02:00
moandji.ezana 28c57069c6 Fixed Javadoc for Java 8 2014-12-16 01:07:59 +02:00
moandji.ezana ff4c0cbc16 Key names can have dots in them 2014-08-12 22:44:24 +02:00
moandji.ezana 5253a80748 Renamed parsers 2014-08-12 16:17:12 +02:00
moandji.ezana adbfeae05e Improved handling of invalid strings and array entries 2014-08-12 15:59:53 +02:00
moandji.ezana 055480ee0b Initial work to implement regex-based parser 2014-08-05 22:18:04 +02:00
moandji.ezana d9e1ccc98a Added Toml#to(Class, Gson) to allow for test output as specified by
BurntSushi/toml-test
2014-07-22 15:50:39 +02:00
moandji.ezana 0af30b90ac Indexed navigation in compound keys and shallow merging of defaults 2014-04-09 15:02:41 +02:00
moandji.ezana 2f355b47f3 Tested and documented extra possibilities of conversion to Java 2014-04-09 11:04:28 +02:00
moandji.ezana b0a8de8b19 Added Toml#parse(Reader) and Toml#parse(InputStream) 2014-04-08 16:37:02 +02:00
moandji.ezana 86257278b7 Added javadoc. Better null-handling and return empty containers instead
of null.
2014-04-08 12:52:56 +02:00
moandji.ezana 095e33a03b Added support for simple table array 2014-04-07 13:17:56 +02:00
moandji.ezana bc78ff64b5 Replaced "key group" by "table" 2014-04-06 22:25:21 +02:00
moandji.ezana 450e7402ef Toml#to(Class) converts to custom class 2013-02-28 12:53:46 +02:00
moandji.ezana 9fe3637126 Moved parsing from constructor to parse() methods 2013-02-26 21:20:00 +02:00
moandji.ezana 4ad8a683cc Initial commit 2013-02-26 09:57:26 +02:00