org.aksw.commons.util
Class SerializationUtils
java.lang.Object
org.aksw.commons.util.SerializationUtils
public class SerializationUtils
- extends Object
- Author:
- Sebastian Hellmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializationUtils
public SerializationUtils()
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.