Interface CharsetFinder


public interface CharsetFinder
Represents a class that decides the character set based on the content type and the real content.

It is currently used to decide the encoding of the upload file if specified by Configuration.setUploadCharsetFinder(org.zkoss.zk.ui.util.CharsetFinder).

Since:
3.0.0
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    getCharset(String contentType, InputStream content)
    Returns the character set for the specified content type, or null if it is unable to determine one.
  • Method Details

    • getCharset

      String getCharset(String contentType, InputStream content) throws IOException
      Returns the character set for the specified content type, or null if it is unable to determine one.
      Parameters:
      contentType - the content type (never null)
      content - the content
      Throws:
      IOException