Package org.apache.poi.ss.excelant.util
Class ExcelAntWorkbookUtilFactory
java.lang.Object
org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtilFactory
This is a factory class maps file names to WorkbookUtil instances. This
helps ExcelAnt be more efficient when being run many times in an Ant build.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExcelAntWorkbookUtilgetInstance(String fileName) Using the fileName, check the internal map to see if an instance of the WorkbookUtil exists.
-
Method Details
-
getInstance
Using the fileName, check the internal map to see if an instance of the WorkbookUtil exists. If not, then add an instance to the map.- Parameters:
fileName- The filename to use as key to look for the ExcelAntWorkbookUtil.- Returns:
- An instance of ExcelAntWorkbookUtil associated with the filename or a freshly instantiated one if none did exist before.
-