Package org.zkoss.zk.ui.util
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCharset(java.lang.String contentType, java.io.InputStream content)
Returns the character set for the specified content type, or null if it is unable to determine one.
-
-
-
Method Detail
-
getCharset
java.lang.String getCharset(java.lang.String contentType, java.io.InputStream content) throws java.io.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:
java.io.IOException
-
-