Package io.odysz.module.xtable
Class XMLDataFactoryEx
java.lang.Object
io.odysz.module.xtable.XMLDataFactoryEx
Factory of flat xml data.
All tables are not managed - release memory for performance.
- Author:
- Odys
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LinkedHashMap<String,
XMLTable> getXtables
(ILogger logger, String targetFullpath, IXMLStruct xmlStruct) Construct a new table.
Not xml table data are buffered - for release memory.static void
writeTables
(IXMLStruct xmlStrct, String fullpath, XMLTable[] tables) Write xtables (mapping info) into mapping file (fullpath).
-
Constructor Details
-
XMLDataFactoryEx
public XMLDataFactoryEx()
-
-
Method Details
-
getXtables
public static LinkedHashMap<String,XMLTable> getXtables(ILogger logger, String targetFullpath, IXMLStruct xmlStruct) throws SAXException, IOException Construct a new table.
Not xml table data are buffered - for release memory.- Parameters:
logger
-targetFullpath
- path and filenamexmlStruct
-- Returns:
- xtables
- Throws:
SQLException
IOException
SAXException
-
writeTables
public static void writeTables(IXMLStruct xmlStrct, String fullpath, XMLTable[] tables) throws SAXException, IOException Write xtables (mapping info) into mapping file (fullpath).- Parameters:
xmlStrct
-fullpath
-tables
-- Throws:
IOException
Exception
SAXException
-