me.grison.jtoml.impl
Class SimpleTomlSerializer
java.lang.Object
me.grison.jtoml.impl.SimpleTomlSerializer
- All Implemented Interfaces:
- TomlSerializer
public class SimpleTomlSerializer
- extends Object
- implements TomlSerializer
Builtin Toml TomlSerializer.
- Author:
- $Author: Alexandre Grison$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTomlSerializer
public SimpleTomlSerializer()
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.