me.grison.jtoml.impl
Class SimpleTomlSerializer

java.lang.Object
  extended by me.grison.jtoml.impl.SimpleTomlSerializer
All Implemented Interfaces:
TomlSerializer

public class SimpleTomlSerializer
extends Object
implements TomlSerializer

Builtin Toml TomlSerializer.

Author:
$Author: Alexandre Grison$

Constructor Summary
SimpleTomlSerializer()
           
 
Method Summary
 String serialize(Object object)
          Serializes the given Object to a TOML String.
 String serialize(String rootKey, Object object)
          Serializes the given Object to a TOML String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTomlSerializer

public SimpleTomlSerializer()
Method Detail

serialize

public String serialize(Object object)
Description copied from interface: TomlSerializer
Serializes the given Object to a TOML String.

Specified by:
serialize in interface TomlSerializer
Parameters:
object - the Object to be serialized
Returns:
the TOML String representing the given Object.

serialize

public String serialize(String rootKey,
                        Object object)
Description copied from interface: TomlSerializer
Serializes the given Object to a TOML String.

Specified by:
serialize in interface TomlSerializer
Parameters:
rootKey - the root key (can be empty or null)
object - the Object to be serialized
Returns:
the TOML String representing the given Object.


Copyright © 2013. All Rights Reserved.