org.eaglei.datatools.etl.server
Class ExcelFileParser

java.lang.Object
  extended by org.eaglei.datatools.etl.server.EIFileParser<java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab>>
      extended by 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()

Nested Class Summary
 class ExcelFileParser.ExcelFileMetaData
           
 class ExcelFileParser.SheetMetaData
           
 
Nested classes/interfaces inherited from class org.eaglei.datatools.etl.server.EIFileParser
EIFileParser.FileMetaData
 
Constructor Summary
ExcelFileParser(java.lang.String mapsParentDirecotryPath)
           
 
Method Summary
 EIFileParser.FileMetaData getMetaData()
           
 java.util.Map<java.lang.String,java.lang.Integer> getNumberOfRowsReadFromTabs()
           
 java.lang.String[] getTabOrder()
           
protected  org.eaglei.datatools.etl.server.ExcelFileParser.TabConfigProperites readConfigPropertiesForTab(org.apache.poi.ss.usermodel.Sheet sheet)
           
protected  void readConfigPropertiesOfFile()
          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)
           
 java.util.Map<java.lang.String,ExcelAbstractions.ExcelTab> toCSV(java.io.InputStream excelInputStream)
           
 
Methods inherited from class org.eaglei.datatools.etl.server.EIFileParser
getMapDirecotryPath, setMapDirecotryPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelFileParser

public ExcelFileParser(java.lang.String mapsParentDirecotryPath)
Method Detail

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.