me.grison.jtoml.impl
Class SimpleTomlParser
java.lang.Object
me.grison.jtoml.impl.SimpleTomlParser
- All Implemented Interfaces:
- TomlParser
public class SimpleTomlParser
- extends Object
- implements TomlParser
Builtin Toml parser.
Uses a first pass to make multi-line arrays one-liner, then iterate line by line, matching against known regular expressions,
to extract content and store it into a context map.
- Author:
- $Author: Alexandre Grison$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTomlParser
public SimpleTomlParser()
parse
public Map<String,Object> parse(String tomlString)
- Description copied from interface:
TomlParser
- Parses the given TOML String.
- Specified by:
parse in interface TomlParser
- Parameters:
tomlString - the TOML String
- Returns:
- a Map representing the given TOML structure.
Copyright © 2013. All Rights Reserved.