|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.init.its.util.ItsSerializerService
public class ItsSerializerService
Serializer Service Class
Method Summary | ||
---|---|---|
static
|
deserialise(java.lang.String path,
java.lang.Class<T> clazz)
Deserializes a persistet object. |
|
static
|
serialize(T document,
java.lang.String path)
Serializes an its document to a given path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> void serialize(T document, java.lang.String path) throws java.lang.Exception
path
- the path to persist the serialized objectdocument
- the (eg. ItsDocument) to serialise
java.lang.Exception
- of serialisation is not possible (some )public static <T> T deserialise(java.lang.String path, java.lang.Class<T> clazz) throws org.yaml.snakeyaml.serializer.SerializerException, java.lang.Exception
path
- the path of the serialized objectclazz
- the expected type
java.lang.Exception
- if something fails
org.yaml.snakeyaml.serializer.SerializerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |