Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EncodingHelper (0.1 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

    import java.util.HashMap;
    import java.util.Locale;
    import java.util.Map;
    
    import org.codelibs.core.lang.StringUtil;
    
    /**
     * @author shinsuke
     *
     */
    public class EncodingHelper {
    
        protected String defaultEncoding = null;
    
        protected Map<String, String> encodingMap = new HashMap<>();
    
        public String normalize(final String enc) {
            if (StringUtil.isBlank(enc)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/EncodingHelperTest.java

     */
    public class EncodingHelperTest extends PlainTestCase {
        public EncodingHelper encodingHelper;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("encodingHelper", EncodingHelper.class);
            encodingHelper = container.getComponent("encodingHelper");
        }
    
        public void test_normalize() {
            String enc;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            return normalizeEncoding(encoding);
        }
    
        protected String normalizeEncoding(final String encoding) {
            try {
                final EncodingHelper encodingHelper = crawlerContainer.getComponent("encodingHelper");
                return encodingHelper.normalize(encoding);
            } catch (final Exception e) {
                // NOP
            }
            return encoding;
        }
    
    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/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                    .singleton("sitemapsHelper", SitemapsHelper.class).singleton("logHelper", LogHelperImpl.class)
                    .singleton("encodingHelper", EncodingHelper.class).singleton("contentLengthHelper", ContentLengthHelper.class)
                    .singleton("mimeTypeHelper", MimeTypeHelperImpl.class)
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18K bytes
    - Viewed (0)
Back to top