Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for AccessResultDataImpl (0.14 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultDataImpl.java

    import java.io.UnsupportedEncodingException;
    
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.crawler.Constants;
    
    /**
     * @author shinsuke
     *
     */
    public class AccessResultDataImpl<IDTYPE> implements AccessResultData<IDTYPE> {
        protected IDTYPE id;
    
        protected String transformerName;
    
        protected byte[] data;
    
        protected String encoding;
    
        /*
         * (non-Javadoc)
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

                fail();
            } catch (final CrawlerSystemException e) {
                // NOP
            }
        }
    
        public void test_getData() throws Exception {
            final AccessResultDataImpl accessResultData = new AccessResultDataImpl();
            accessResultData.setTransformerName("textTransformer");
            accessResultData.setData("xyz".getBytes());
    
            final Object obj = textTransformer.getData(accessResultData);
    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. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

                    + "</doc>";
    
            final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl();
            accessResultDataImpl.setData(value.getBytes(Constants.UTF_8));
            accessResultDataImpl.setEncoding(Constants.UTF_8);
            accessResultDataImpl.setTransformerName("xpathTransformer");
    
            final Object obj = xpathTransformer.getData(accessResultDataImpl);
            assertEquals(value, obj);
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java

            final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl();
            accessResultDataImpl.setData(value.getBytes());
            accessResultDataImpl.setEncoding(Constants.UTF_8);
            accessResultDataImpl.setTransformerName("htmlTransformer");
    
            final Object obj = htmlTransformer.getData(accessResultDataImpl);
            assertEquals(value, obj);
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformerTest.java

                fail();
            } catch (final CrawlerSystemException e) {
                // NOP
            }
        }
    
        public void test_getData() throws Exception {
            final AccessResultDataImpl accessResultData = new AccessResultDataImpl();
            accessResultData.setTransformerName("binaryTransformer");
            accessResultData.setData("xyz".getBytes());
    
            final Object obj = binaryTransformer.getData(accessResultData);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java

                    + "</doc>";
    
            final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl();
            accessResultDataImpl.setData(value.getBytes(Constants.UTF_8));
            accessResultDataImpl.setEncoding(Constants.UTF_8);
            accessResultDataImpl.setTransformerName("xmlTransformer");
    
            final Object obj = xmlTransformer.getData(accessResultDataImpl);
            assertEquals(value, obj);
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java

            final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl();
            accessResultDataImpl.setData("hoge.txt".getBytes());
            accessResultDataImpl.setEncoding(Constants.UTF_8);
            accessResultDataImpl.setTransformerName("fileTransformer");
    
            setBaseDir();
    
            final Object obj = fileTransformer.getData(accessResultDataImpl);
            assertTrue(obj instanceof File);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/service/impl/DataServiceImpl.java

    import java.util.List;
    import java.util.Map;
    
    import org.codelibs.fess.crawler.Constants;
    import org.codelibs.fess.crawler.entity.AccessResultData;
    import org.codelibs.fess.crawler.entity.AccessResultDataImpl;
    import org.codelibs.fess.crawler.entity.AccessResultImpl;
    import org.codelibs.fess.crawler.exception.CrawlerSystemException;
    import org.codelibs.fess.crawler.helper.MemoryDataHelper;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResultData.java

    import org.codelibs.fess.crawler.exception.OpenSearchAccessException;
    import org.opensearch.core.xcontent.ToXContent;
    import org.opensearch.core.xcontent.XContentBuilder;
    
    public class OpenSearchAccessResultData extends AccessResultDataImpl<String> implements ToXContent {
    
        public static final String ID = "id";
    
        public static final String TRANSFORMER_NAME = "transformerName";
    
        public static final String DATA = "data";
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/AccessResultImpl.java

            setCreateTime(System.currentTimeMillis());
            if (responseData != null) {
                BeanUtil.copyBeanToBean(responseData, this);
            }
    
            final AccessResultData<IDTYPE> accessResultData = new AccessResultDataImpl<>();
            if (resultData != null) {
                BeanUtil.copyBeanToBean(resultData, accessResultData);
            }
            setAccessResultData(accessResultData);
        }
    
        /*
         * (non-Javadoc)
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top