org.aksw.commons.util
Class SerializationUtils

java.lang.Object
  extended by org.aksw.commons.util.SerializationUtils

public class SerializationUtils
extends Object

Author:
Sebastian Hellmann

Constructor Summary
SerializationUtils()
           
 
Method Summary
static Object deserializeXml(File file)
           
static Object deserializeXml(InputStream in)
           
static void serializeXml(Object obj, File file)
           
static void serializeXml(Object obj, File file, boolean force)
           
static void serializeXml(Object obj, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationUtils

public SerializationUtils()
Method Detail

serializeXml

public static void serializeXml(Object obj,
                                File file)
                         throws IOException
Throws:
IOException

serializeXml

public static void serializeXml(Object obj,
                                File file,
                                boolean force)
                         throws IOException
Parameters:
obj -
file -
force - Whether to attempt to create parent dirs
Throws:
JAXBException
IOException

serializeXml

public static void serializeXml(Object obj,
                                OutputStream out)

deserializeXml

public static Object deserializeXml(InputStream in)
                             throws IOException
Throws:
IOException

deserializeXml

public static Object deserializeXml(File file)
                             throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.