Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for enc (0.01 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/EncodingHelperTest.java

            enc = "UTF-8";
            assertEquals("UTF-8", encodingHelper.normalize(enc));
    
            enc = "Shift_JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
    
            enc = "S-JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
        }
    
        public void test_normalize_null() {
            String enc;
    
            enc = null;
            assertNull(encodingHelper.normalize(enc));
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

         *
         * @param enc the encoding string to normalize
         * @return the normalized encoding or the default encoding if the input is blank
         */
        public String normalize(final String enc) {
            if (StringUtil.isBlank(enc)) {
                return defaultEncoding;
            }
    
            final String newEnc = encodingMap.get(toLowerCase(enc));
            if (StringUtil.isBlank(newEnc)) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractXmlExtractor.java

                }
                final Matcher matcher = getEncodingPattern().matcher(head);
                if (matcher.find()) {
                    final String enc = matcher.group(1);
                    if (Charset.isSupported(enc)) {
                        return enc;
                    }
                }
            } catch (final Exception e) {
                if (logger.isInfoEnabled()) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

            }
        }
    
        private String getResourceName(final ResponseData responseData) {
            String name = responseData.getUrl();
            final String enc = responseData.getCharSet();
    
            if (name == null || enc == null) {
                return null;
            }
    
            name = name.replaceAll("/+$", "");
            final int idx = name.lastIndexOf('/');
            if (idx >= 0) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

                                        br = new BufferedReader(new InputStreamReader(inputStream, enc));
                                    } else {
                                        br = new BufferedReader(new InputStreamReader(new FileInputStream(tempFile), enc));
                                    }
                                    String line;
                                    while ((line = br.readLine()) != null) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/HtmlXpathExtractor.java

            }
            try {
                final BufferedInputStream bis = new BufferedInputStream(in);
                final String enc = getEncoding(bis);
    
                final DOMParser parser = getDomParser();
                final InputSource inputSource = new InputSource(bis);
                inputSource.setEncoding(enc);
                parser.parse(inputSource);
                final Document document = parser.getDocument();
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

         * Encodes a URL using the specified character encoding.
         *
         * @param url the URL to encode
         * @param enc the character encoding to use
         * @return the encoded URL
         */
        protected String encodeUrl(final String url, final String enc) {
            if (StringUtil.isBlank(url) || StringUtil.isBlank(enc)) {
                return url;
            }
    
            final StringBuilder buf = new StringBuilder(url.length() + 100);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  8. fess-crawler-lasta/src/main/resources/crawler/extractor.xml

    				"audio/speex",
    				"audio/parityfec",
    				"audio/pcma",
    				"audio/pcma-wb",
    				"audio/pcmu-wb",
    				"audio/pcmu",
    				"audio/prs.sid",
    				"audio/qcelp",
    				"audio/red",
    				"audio/rtp-enc-aescm128",
    				"audio/rtp-midi",
    				"audio/rtx",
    				"audio/smv",
    				"audio/smv0",
    				"audio/smv-qcp",
    				"audio/sp-midi",
    				"audio/t140c",
    				"audio/t38",
    				"audio/telephone-event",
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Aug 01 21:40:30 UTC 2020
    - 49K bytes
    - Viewed (0)
  9. fess-crawler/src/main/resources/org/codelibs/fess/crawler/mime/tika-mimetypes.xml

        <magic priority="50">
          <match value="PSID" type="string" offset="0"/>
        </magic>
      </mime-type>
    
      <mime-type type="audio/qcelp"/>
      <mime-type type="audio/red"/>
      <mime-type type="audio/rtp-enc-aescm128"/>
      <mime-type type="audio/rtp-midi"/>
      <mime-type type="audio/rtx"/>
      <mime-type type="audio/smv"/>
      <mime-type type="audio/smv0"/>
      <mime-type type="audio/smv-qcp"/>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Mar 13 08:18:01 UTC 2025
    - 320.1K bytes
    - Viewed (1)
Back to top