public abstract class XmlModel extends Object
Constructor and Description |
---|
XmlModel() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
load(Class<T> clazz,
File file) |
static <T> T |
load(Class<T> clazz,
String filename) |
void |
save(File file) |
static String |
toXmlString(Object o) |
static void |
write(Object o,
File file) |
static void |
write(Object o,
String filename)
Marshals an object
|
public static void write(Object o, String filename) throws JAXBException
JAXBException
public static void write(Object o, File file) throws JAXBException
JAXBException
public void save(File file)
Copyright © 2017. All rights reserved.