Package xal.tools.xml
Class XmlTableIO
java.lang.Object
xal.tools.xml.XmlTableIO
Static methods for reading and writing tables from/to XML files.
- Author:
- tap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
readTableGroupFromFile
(EditContext editContext, String tableGroup, File file) Read the table group from the specified file into editContext without XML validation.static void
readTableGroupFromUrl
(EditContext editContext, String tableGroup, String urlSpec) Read the table group from the URL file into editContext without XML validation.static void
readTableGroupFromUrl
(EditContext editContext, String tableGroup, String urlSpec, boolean isValidating) Read the table group from the URL file into editContext with the specified XML validation flag.static void
writeTableGroupToFile
(EditContext editContext, String group, File file) Write all tables associated with the specified group in editContext to an XML file.static void
writeTableGroupToUrl
(EditContext editContext, String group, String urlSpec) Write all tables associated with the specified group in editContext to an XML file.
-
Constructor Details
-
XmlTableIO
protected XmlTableIO()Creates a new instance of XmlTableReader
-
-
Method Details
-
readTableGroupFromFile
public static void readTableGroupFromFile(EditContext editContext, String tableGroup, File file) throws URLUtil.FilePathException Read the table group from the specified file into editContext without XML validation.- Throws:
URLUtil.FilePathException
-
readTableGroupFromUrl
public static void readTableGroupFromUrl(EditContext editContext, String tableGroup, String urlSpec) Read the table group from the URL file into editContext without XML validation. -
readTableGroupFromUrl
public static void readTableGroupFromUrl(EditContext editContext, String tableGroup, String urlSpec, boolean isValidating) Read the table group from the URL file into editContext with the specified XML validation flag. -
writeTableGroupToFile
public static void writeTableGroupToFile(EditContext editContext, String group, File file) throws URLUtil.FilePathException Write all tables associated with the specified group in editContext to an XML file.- Throws:
URLUtil.FilePathException
-
writeTableGroupToUrl
Write all tables associated with the specified group in editContext to an XML file.
-