public class JacksonSerializerWrapper extends Object implements ObjectSerializer
Constructor and Description |
---|
JacksonSerializerWrapper() |
Modifier and Type | Method and Description |
---|---|
String |
writeValueAsString(Object object)
Converts an object into a textual representation, preserving all the object properties.
|
void |
writeValueOnFile(Object object,
String filePath)
Converts an object into a textual representation, preserving all the object properties,
and write this String into a file.
|
void |
writeValueOnGzipFile(Object object,
String filePath)
Converts an object into a textual representation, preserving all the object properties,
and write this String into a GZip file.
|
public String writeValueAsString(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
ObjectSerializer
writeValueAsString
in interface ObjectSerializer
object
- the object to be serializedobject
com.fasterxml.jackson.core.JsonProcessingException
public void writeValueOnFile(Object object, String filePath) throws IOException
ObjectSerializer
writeValueOnFile
in interface ObjectSerializer
object
- the object to be serializedfilePath
- the path of the file where object
must be serializedIOException
public void writeValueOnGzipFile(Object object, String filePath) throws IOException
ObjectSerializer
writeValueOnGzipFile
in interface ObjectSerializer
object
- the object to be serializedfilePath
- the path of the file where object
must be serializedIOException
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.