org.eaglei.datatools.etl.server
Class ExcelFileParser
java.lang.Object
org.eaglei.datatools.etl.server.EIFileParser<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
org.eaglei.datatools.etl.server.ExcelFileParser
public class ExcelFileParser
- extends EIFileParser<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Author:
- Sravan Kumar Cheriyala FIXME:write comments for readMapDirectoryPathFromFile(),readFormatConfigPropertiesOfFile(),FormatPropertiesOfTab(),readFormatConfigPropertiesForTab()
|
Constructor Summary |
ExcelFileParser(java.lang.String mapsParentDirecotryPath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExcelFileParser
public ExcelFileParser(java.lang.String mapsParentDirecotryPath)
toCSV
public java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab> toCSV(java.io.InputStream excelInputStream)
throws org.apache.commons.configuration.ConfigurationException,
java.io.IOException,
java.text.ParseException
- Specified by:
toCSV in class EIFileParser<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Throws:
org.apache.commons.configuration.ConfigurationException
java.io.IOException
java.text.ParseException
readMapDirectoryPathFromFile
protected java.lang.String readMapDirectoryPathFromFile()
throws java.text.ParseException
- Specified by:
readMapDirectoryPathFromFile in class EIFileParser<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Throws:
java.text.ParseException
readConfigPropertiesOfFile
protected void readConfigPropertiesOfFile()
throws java.io.IOException,
org.apache.commons.configuration.ConfigurationException
- Description copied from class:
EIFileParser
- there are some format properties configured in properties file like order of tabs to process,global columns,global columns to appear in csv etc .These properties belong to entire File.readFormatConfigPropertiesOfFile reads the properties file
and get the configuration parameters into class
- Specified by:
readConfigPropertiesOfFile in class EIFileParser<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Throws:
java.io.IOException
org.apache.commons.configuration.ConfigurationException
readConfigPropertiesForTab
protected org.eaglei.datatools.etl.server.ExcelFileParser.TabConfigProperites readConfigPropertiesForTab(org.apache.poi.ss.usermodel.Sheet sheet)
throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
getTabOrder
public java.lang.String[] getTabOrder()
setTabOrder
public void setTabOrder(java.lang.String[] tabOrder)
getNumberOfRowsReadFromTabs
public java.util.Map<java.lang.String,java.lang.Integer> getNumberOfRowsReadFromTabs()
getMetaData
public EIFileParser.FileMetaData getMetaData()
Copyright © 2009-2011 Eagle-I. All Rights Reserved.