public class JaxbXmlConfigurationHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LSC_CONF_XML |
static String |
LSC_NAMESPACE |
Constructor and Description |
---|
JaxbXmlConfigurationHelper()
Initiate helper by adding XML aliases
|
Modifier and Type | Method and Description |
---|---|
Lsc |
getConfiguration(String filename)
Load an XML file to the object
|
void |
saveConfiguration(String filename,
Lsc lscConf)
Dump the object to an XML file (by overriding if necessary)
|
public static final String LSC_CONF_XML
public static final String LSC_NAMESPACE
public JaxbXmlConfigurationHelper() throws LscConfigurationException
LscConfigurationException
public Lsc getConfiguration(String filename) throws LscConfigurationException
filename
- filename to read fromFileNotFoundException
- thrown if the file can not be accessed (either because of a
misconfiguration or due to a rights issue)LscConfigurationException
public void saveConfiguration(String filename, Lsc lscConf) throws IOException
filename
- filename to write tolscConf
- configuration objectFileNotFoundException
- thrown if the file can not be accessed (either because of a
misconfiguration or due to a rights issue)IOException
Copyright © 2005-2024 LSC project. All Rights Reserved.