Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for encodingHelper (0.19 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-lasta/src/main/resources/crawler/encoding.xml

    <!DOCTYPE components PUBLIC "-//DBFLUTE//DTD LastaDi 1.0//EN"
    	"http://dbflute.org/meta/lastadi10.dtd">
    <components namespace="fessCrawler">
    	<include path="crawler/container.xml" />
    
    	<component name="encodingHelper" class="org.codelibs.fess.crawler.helper.EncodingHelper">
    		<postConstruct name="addEncodingMapping">
    			<arg>"unicode"</arg>
    			<arg>"UTF-16LE"</arg>
    		</postConstruct>
    	</component>
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Fri Jun 16 13:35:06 UTC 2017
    - 454 bytes
    - Viewed (0)
  4. 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)
  5. 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