diff -r f5b287fa69b6 -r c03497563ce3 java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java --- a/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sat Sep 06 23:44:26 2014 +0200 +++ b/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sun Sep 07 00:01:49 2014 +0200 @@ -34,6 +34,30 @@ import org.xml.sax.helpers.AttributesImpl; /** + * Reads INI files with sections and entries. + * Example: + *
; this is comment + *random=value outside of any groups + * + *[some_section] + * + *; simple entry: + *key=value + * + *; entry starting/ending with whitespace + *white=" spaces everywhere " ; might have comment + *alternative=' spaces everywhere ' ; same + * + *; entries with subkeys: + *key[subkey_a]=value + *key[subkey_b]=value + * + *# alternative way to comment + * + *[another secion] + *yes=there might be spaces in names + *because=they are encoded before putting into XML element names + ** * @author Ing. František Kučera (frantovo.cz) */ @@ -139,7 +163,7 @@ } }, - SECTION("\\s*\\[\\s*(?