Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addEncodingMapping (0.15 sec)

  1. fess-crawler-lasta/src/main/resources/crawler/encoding.xml

    <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)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/EncodingHelperTest.java

            enc = "S-JIS";
            assertEquals("S-JIS", encodingHelper.normalize(enc));
        }
    
        public void test_normalize_map() {
            String enc;
    
            encodingHelper.addEncodingMapping("S-JIS", "Shift_JIS");
    
            enc = "UTF-8";
            assertEquals("UTF-8", encodingHelper.normalize(enc));
    
            enc = "Shift_JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(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/helper/EncodingHelper.java

                return enc;
            }
            return newEnc;
        }
    
        public void setDefaultEncoding(final String defaultEncoding) {
            this.defaultEncoding = defaultEncoding;
        }
    
        public void addEncodingMapping(final String source, final String target) {
            encodingMap.put(toLowerCase(source), target);
        }
    
        protected String toLowerCase(final String enc) {
            return enc.toLowerCase(Locale.ROOT);
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top