Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseCharset (0.07 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                final int size = bis.read(buffer);
                if (size != -1) {
                    final String content = new String(buffer, 0, size);
                    encoding = parseCharset(content);
                }
            } catch (final IOException e) {
                throw new CrawlingAccessException("Could not load a content.", e);
            }
    
            return normalizeEncoding(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)
  2. guava/src/com/google/common/net/MediaType.java

        }
        MediaType mediaType = new MediaType(type, subtype, builder.build());
        // if the attribute isn't charset, we can just inherit the current parsedCharset
        if (!normalizedAttribute.equals(CHARSET_ATTRIBUTE)) {
          mediaType.parsedCharset = this.parsedCharset;
        }
        // Return one of the constants if the media type is a known type.
        return MoreObjects.firstNonNull(KNOWN_TYPES.get(mediaType), mediaType);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
Back to top