Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for ExtractorFactory (0.29 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorFactory.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     *
     */
    public class ExtractorFactory {
    
        private static final Logger logger = LoggerFactory.getLogger(ExtractorFactory.class);
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        protected Map<String, Extractor> extractorMap = new HashMap<>();
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Jun 18 05:49:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

                    .singleton("textTransformer", TextTransformer.class).singleton("tikaExtractor", TikaExtractor.class);
            textTransformer = container.getComponent("textTransformer");
            textTransformer.setName("textTransformer");
            ExtractorFactory extractorFactory = container.getComponent("extractorFactory");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/crawler/transformer/FessFileTransformer.java

        @Override
        protected Extractor getExtractor(final ResponseData responseData) {
            final ExtractorFactory extractorFactory = ComponentUtil.getExtractorFactory();
            if (extractorFactory == null) {
                throw new FessSystemException("Could not find extractorFactory.");
            }
            final Extractor extractor = extractorFactory.getExtractor(responseData.getMimeType());
            if (logger.isDebugEnabled()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

                throw new CrawlingAccessException("No response body.");
            }
    
            final ExtractorFactory extractorFactory = crawlerContainer.getComponent("extractorFactory");
            if (extractorFactory == null) {
                throw new CrawlerSystemException("Could not find extractorFactory.");
            }
            final Extractor extractor = extractorFactory.getExtractor(responseData.getMimeType());
            final Map<String, String> params = new HashMap<>();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

            if (in == null) {
                throw new CrawlerSystemException("The inputstream is null.");
            }
    
            final MimeTypeHelper mimeTypeHelper = getMimeTypeHelper();
            final ExtractorFactory extractorFactory = getExtractorFactory();
            final StringBuilder buf = new StringBuilder(1000);
    
            File tempFile = null;
            LhaFile lhaFile = null;
            try {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ZipExtractorTest.java

                    .singleton("tikaExtractor", TikaExtractor.class).singleton("zipExtractor", ZipExtractor.class)
                    .<ExtractorFactory> singleton("extractorFactory", ExtractorFactory.class, factory -> {
                        TikaExtractor tikaExtractor = container.getComponent("tikaExtractor");
                        ZipExtractor zipExtractor = container.getComponent("zipExtractor");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractorTest.java

            container.singleton("mimeTypeHelper", MimeTypeHelperImpl.class).singleton("tikaExtractor", TikaExtractor.class)
                    .singleton("lhaExtractor", LhaExtractor.class)
                    .<ExtractorFactory> singleton("extractorFactory", ExtractorFactory.class, factory -> {
                        TikaExtractor tikaExtractor = container.getComponent("tikaExtractor");
                        LhaExtractor lhaExtractor = container.getComponent("lhaExtractor");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

            this.cacheFileSize = cacheFileSize;
            return this;
        }
    
        public ExtractData extract() {
            final ExtractorFactory extractorFactory = crawlerContainer.getComponent("extractorFactory");
    
            DeferredFileOutputStream dfos = null;
            try (DeferredFileOutputStream out = new DeferredFileOutputStream(cacheFileSize, "fess-extractor-", ".out", null)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/ExtractorFactoryTest.java

            extractorFactory.addExtractor("application/vnd.ms-excel", tikaExtractor);
            extractorFactory.addExtractor("application/vnd.ms-powerpoint", tikaExtractor);
            extractorFactory.addExtractor("application/vnd.visio", tikaExtractor);
            extractorFactory.addExtractor("application/pdf", pdfExtractor);
            extractorFactory.addExtractor("application/x-lha", lhaExtractor);
            extractorFactory.addExtractor("application/x-lharc", lhaExtractor);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Jun 18 05:49:13 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractor.java

            }
            return mimeTypeHelper;
        }
    
        protected ExtractorFactory getExtractorFactory() {
            final ExtractorFactory extractorFactory = crawlerContainer.getComponent("extractorFactory");
            if (extractorFactory == null) {
                throw new CrawlerSystemException("ExtractorFactory is unavailable.");
            }
            return extractorFactory;
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top