org.eaglei.datatools.etl.server
Class ExcelFileToCSV
java.lang.Object
org.eaglei.datatools.etl.server.FileToCSV<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
org.eaglei.datatools.etl.server.ExcelFileToCSV
public class ExcelFileToCSV
- extends FileToCSV<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Author:
- Sravan Kumar Cheriyala
FIXME:write comments for readMapDirectoryPathFromFile(),readFormatConfigPropertiesOfFile(),FormatPropertiesOfTab(),readFormatConfigPropertiesForTab()
|
Constructor Summary |
ExcelFileToCSV(java.lang.String mapsParentDirecotryPath)
|
|
Method Summary |
java.lang.String[] |
getTabOrder()
|
java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab> |
makeCSV(java.io.InputStream excelInputStream)
|
protected org.eaglei.datatools.etl.server.ExcelFileToCSV.FormatPropertiesOfTab |
readFormatConfigPropertiesForTab(org.apache.poi.ss.usermodel.Sheet sheet)
|
protected void |
readFormatConfigPropertiesOfFile()
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 |
protected java.lang.String |
readMapDirectoryPathFromFile()
|
void |
setTabOrder(java.lang.String[] tabOrder)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExcelFileToCSV
public ExcelFileToCSV(java.lang.String mapsParentDirecotryPath)
makeCSV
public java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab> makeCSV(java.io.InputStream excelInputStream)
throws org.apache.commons.configuration.ConfigurationException,
java.io.IOException
- Specified by:
makeCSV in class FileToCSV<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Throws:
org.apache.commons.configuration.ConfigurationException
java.io.IOException
readMapDirectoryPathFromFile
protected java.lang.String readMapDirectoryPathFromFile()
- Specified by:
readMapDirectoryPathFromFile in class FileToCSV<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
readFormatConfigPropertiesOfFile
protected void readFormatConfigPropertiesOfFile()
throws java.io.IOException,
org.apache.commons.configuration.ConfigurationException
- Description copied from class:
FileToCSV
- 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:
readFormatConfigPropertiesOfFile in class FileToCSV<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
- Throws:
java.io.IOException
org.apache.commons.configuration.ConfigurationException
readFormatConfigPropertiesForTab
protected org.eaglei.datatools.etl.server.ExcelFileToCSV.FormatPropertiesOfTab readFormatConfigPropertiesForTab(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)
Copyright © 2009-2011 Eagle-I. All Rights Reserved.