Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,435 for constant (0.04 sec)

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

            }
    
            return encoding;
        }
    
        /**
         * Extracts text content from the given content by removing tags and processing attributes.
         * @param content The content to extract from.
         * @return The extracted text.
         */
        protected String extractString(final String content) {
            String input = content.replaceAll("[\\r\\n]", " ");
            if (ignoreCommentTag) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            assertEquals(Constants.GET_METHOD, responseData.getMethod());
            assertEquals("text/plain", responseData.getMimeType());
            assertTrue(responseData.getUrl().endsWith("test/text1.txt"));
            final String content = new String(InputStreamUtil.getBytes(responseData.getResponseBody()), "UTF-8");
            assertEquals("test1", content.trim());
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

                try {
                    return new String(data, encoding == null ? Constants.UTF_8 : encoding);
                } catch (final UnsupportedEncodingException e) {
                    if (logger.isInfoEnabled()) {
                        logger.info("Invalid charsetName: " + encoding + ". Changed to " + Constants.UTF_8, e);
                    }
                    return new String(data, Constants.UTF_8_CHARSET);
                }
            }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

         */
        public String getSimpleName() {
            return new File(path).getName();
        }
    
        /**
         * Updates the entire mapping file content from the provided input stream.
         *
         * @param in the input stream containing the new mapping file content
         * @throws IOException if an I/O error occurs during the update
         */
        public synchronized void update(final InputStream in) throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

        }
    
        /**
         * Appends line numbers to each line of content with a given prefix.
         * Useful for debugging and displaying content with line references.
         *
         * @param prefix the prefix to add before each line number
         * @param content the content to add line numbers to
         * @return the content with line numbers prepended, or empty string if content is blank
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/api/BaseApiManager.java

            }
    
            // default
            return FormatType.OTHER;
        }
    
        /**
         * Writes text content to the HTTP response with specified content type and encoding.
         * @param text The text content to write.
         * @param contentType The content type for the response.
         * @param encoding The character encoding for the response.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java

                final Session mailSession = Session.getDefaultInstance(props, null);
                final MimeMessage message = new MimeMessage(mailSession, in);
                final String content = getBodyText(message);
                final ExtractData data = new ExtractData(content != null ? content : StringUtil.EMPTY);
                final Enumeration<Header> headers = message.getAllHeaders();
                while (headers.hasMoreElements()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

         * @param in the input stream containing the file content
         */
        protected void reload(final ProtwordsUpdater updater, final InputStream in) {
            final List<ProtwordsItem> itemList = new ArrayList<>();
            try (BufferedReader reader = new BufferedReader(new InputStreamReader(in, Constants.UTF_8))) {
                long id = 0;
                String line = null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

        }
    
        /**
         * Parses the XML content from the provided {@link AccessResultData} and returns a map of the data.
         *
         * @param accessResultData the data containing the XML content to be parsed
         * @return a map containing the parsed data from the XML content
         * @throws CrawlerSystemException if an error occurs while parsing the XML content
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/PluginHelper.java

                        final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                        factory.setFeature(Constants.FEATURE_SECURE_PROCESSING, true);
                        factory.setFeature(Constants.FEATURE_EXTERNAL_GENERAL_ENTITIES, false);
                        factory.setFeature(Constants.FEATURE_EXTERNAL_PARAMETER_ENTITIES, false);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top