Class MainExtractorFactory

  • All Implemented Interfaces:
    ExtractorProvider

    public class MainExtractorFactory
    extends java.lang.Object
    implements ExtractorProvider
    ExtractorFactory for HSSF and Old Excel format
    • Constructor Detail

      • MainExtractorFactory

        public MainExtractorFactory()
    • Method Detail

      • create

        public POITextExtractor create​(java.io.File file,
                                       java.lang.String password)
                                throws java.io.IOException
        Description copied from interface: ExtractorProvider
        Create Extractor via file
        Specified by:
        create in interface ExtractorProvider
        Parameters:
        file - the file
        password - the password or null if not encrypted
        Returns:
        the extractor
        Throws:
        java.io.IOException - if file can't be read or parsed
      • create

        public POITextExtractor create​(java.io.InputStream inputStream,
                                       java.lang.String password)
                                throws java.io.IOException
        Description copied from interface: ExtractorProvider
        Create Extractor via InputStream
        Specified by:
        create in interface ExtractorProvider
        Parameters:
        inputStream - the stream
        password - the password or null if not encrypted
        Returns:
        the extractor
        Throws:
        java.io.IOException - if stream can't be read or parsed
      • create

        public POITextExtractor create​(DirectoryNode poifsDir,
                                       java.lang.String password)
                                throws java.io.IOException
        Description copied from interface: ExtractorProvider
        Create Extractor from POIFS node
        Specified by:
        create in interface ExtractorProvider
        Parameters:
        poifsDir - the node
        password - the password or null if not encrypted
        Returns:
        the extractor
        Throws:
        java.io.IOException - if node can't be parsed