Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for storeData (0.05 sec)

  1. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

            dataStore = new AbstractDataStore() {
                @Override
                protected String getName() {
                    return "Test";
                }
    
                @Override
                protected void storeData(DataConfig dataConfig, IndexUpdateCallback callback, DataStoreParams paramMap,
                        Map<String, String> scriptMap, Map<String, Object> defaultDataMap) {
                    // TODO nothing
                }
            };
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

            defaultDataMap.put(fessConfig.getIndexFieldVirtualHost(),
                    stream(config.getVirtualHosts()).get(stream -> stream.filter(StringUtil::isNotBlank).collect(Collectors.toList())));
    
            storeData(config, callback, paramMap.newInstance(), configScriptMap, defaultDataMap);
    
        }
    
        protected String getScriptType(final DataStoreParams paramMap) {
            final String value = paramMap.getAsString(SCRIPT_TYPE);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            updateCharset(responseData);
    
            final ResultData resultData = new ResultData();
            resultData.setTransformerName(getName());
    
            try {
                // data
                storeData(responseData, resultData);
    
                if (isHtml(responseData) && !responseData.isNoFollow()) {
                    // urls
                    storeChildUrls(responseData, resultData);
                }
            } finally {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

                        break;
                    }
                }
            } else {
                targetFile = file;
            }
            return targetFile;
        }
    
        @Override
        public void storeData(final ResponseData responseData, final ResultData resultData) {
            resultData.setTransformerName(getName());
    
            initBaseDir();
    
            final String url = responseData.getUrl();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java

        /**
         * Class type returned by getData() method. The default is null(XML content
         * of String).
         */
        protected Class<?> dataClass = null;
    
        @Override
        protected void storeData(final ResponseData responseData, final ResultData resultData) {
            final DOMParser parser = getDomParser();
            try (final InputStream in = responseData.getResponseBody()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

            responseData.setResponseBody(ResourceUtil.getResourceAsFile("html/test1.html"), false);
            responseData.setCharSet(Constants.UTF_8);
            final ResultData resultData = new ResultData();
            xpathTransformer.storeData(responseData, resultData);
            assertEquals(result, new String(resultData.getData(), Constants.UTF_8));
        }
    
        public void test_getData() throws Exception {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

        public FessConfig getFessConfig() {
            return fessConfig;
        }
    
        @Override
        public Logger getLogger() {
            return logger;
        }
    
        @Override
        protected void storeData(final ResponseData responseData, final ResultData resultData) {
            final DOMParser parser = getDomParser();
            try (final BufferedInputStream bis = new BufferedInputStream(responseData.getResponseBody())) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
Back to top