Package org.apache.poi.ss.excelant.util
Class ExcelAntWorkbookUtilFactory
- java.lang.Object
-
- org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtilFactory
-
public final class ExcelAntWorkbookUtilFactory extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExcelAntWorkbookUtilgetInstance(String fileName)Using the fileName, check the internal map to see if an instance of the WorkbookUtil exists.
-
-
-
Method Detail
-
getInstance
public static ExcelAntWorkbookUtil getInstance(String fileName)
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.
-
-