Class 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 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.