Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Body (0.01 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/TestEntity.java

            return title;
        }
    
        public void setTitle(final String title) {
            this.title = title;
        }
    
        public String getBody() {
            return body;
        }
    
        public void setBody(final String body) {
            this.body = body;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java

            final String value = "<?xml version=\"1.0\"?>\n"//
                    + "<doc>\n"//
                    + "<field name=\"title\">タイトル</field>\n"//
                    + "<field name=\"body\">第一章 第一節 ほげほげふがふが LINK 第2章 第2節</field>\n"//
                    + "<field name=\"list\"><list><item>リスト1</item><item>リスト2</item><item>リスト3</item></list></field>\n"//
                    + "</doc>";
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

        /**
         * Checks if this response has a response body.
         *
         * @return true if the response has a body (either as bytes or file), false otherwise
         */
        public boolean hasResponseBody() {
            return responseBodyBytes != null || responseBodyFile != null;
        }
    
        /**
         * Gets the response body as an InputStream.
         * If the response body is stored as bytes, returns a ByteArrayInputStream.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

                xpathTransformer.setChildUrlRuleMap(childUrlRuleMap);
                Map<String, String> fieldRuleMap = newLinkedHashMap();
                fieldRuleMap.put("title", "//TITLE");
                fieldRuleMap.put("body", "//BODY");
                fieldRuleMap.put("pcount", "count(//P)");
                fieldRuleMap.put("true", "true()");
                fieldRuleMap.put("false", "false()");
                xpathTransformer.setFieldRuleMap(fieldRuleMap);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/ResponseDataUtil.java

        }
    
        /**
         * Creates a temporary file containing the response body from the given ResponseData.
         *
         * @param responseData the response data containing the response body
         * @return a temporary file containing the response body
         * @throws CrawlingAccessException if an error occurs while reading the response body
         */
        public static File createResponseBodyFile(final ResponseData responseData) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformer.java

     *
     * <p>
     * This transformer extracts the binary content from the response body of a web resource,
     * stores it as a byte array in the ResultData, and provides a method to retrieve this data
     * as a ByteArrayInputStream.
     * </p>
     *
     * <p>
     * The transform method takes a ResponseData object, checks if it has a response body,
     * and then reads the body into a byte array. This byte array is then set as the data
     * in the ResultData object.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

        private static String getHtmlContent(final int count) {
            final StringBuilder buf = new StringBuilder();
            buf.append("<html><head><title>Title ");
            buf.append(count);
            buf.append("</title></head><body><h1>Content ");
            buf.append(count);
            buf.append("</h1><br>");
            buf.append("<a href=\"index.html\">Index</a><br>");
            for (int i = 1; i <= 10; i++) {
                buf.append("<a href=\"file");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformer.java

     * transformer.addFieldRule("title", "//title/text()");
     * transformer.addFieldRule("body", "//body/p/text()");
     *
     * ResponseData responseData = new ResponseData();
     * responseData.setBody(new ByteArrayInputStream("&lt;html&gt;&lt;head&gt;&lt;title&gt;Example&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hello World&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;".getBytes()));
     * responseData.setUrl("http://example.com");
     *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

    import jakarta.annotation.Resource;
    
    /**
     * TextTransformer is a class that transforms a ResponseData object into a ResultData object containing the extracted text content.
     * It uses an Extractor to extract the text from the response body based on the MIME type.
     * The extracted text is then converted into a byte array using the specified charset encoding.
     * It also provides a method to retrieve the extracted data as a String from an AccessResultData object.
     *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

        public void setMailProperties(final Properties mailProperties) {
            this.mailProperties = mailProperties;
        }
    
        /**
         * Extracts the body text from a MIME message.
         *
         * @param message the MIME message to extract text from
         * @return the extracted body text
         * @throws ExtractException if extraction fails
         */
        protected String getBodyText(final MimeMessage message) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top