me.grison.jtoml.impl
Class SimpleTomlParser

java.lang.Object
  extended by 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$

Constructor Summary
SimpleTomlParser()
           
 
Method Summary
 Map<String,Object> parse(String tomlString)
          Parses the given TOML String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTomlParser

public SimpleTomlParser()
Method Detail

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.