charsetfinder.java
来自「ZK 基础介绍 功能操作 模块 结合数据库操作」· Java 代码 · 共 44 行
JAVA
44 行
/* CharsetFinder.java{{IS_NOTE Purpose: Description: History: Thu Oct 18 15:48:01 2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT This program is distributed under GPL Version 2.0 in the hope that it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zk.ui.util;import java.io.InputStream;import java.io.IOException;/** * Represents a class that decides the character set based on the * content type and the real content. * * <p>It is currently used to decide the encoding of the upload file * if specified by {@link Configuration#setUploadCharsetFinder}. * * @author tomyeh * @since 3.0.0 */public interface CharsetFinder { /** Returns the character set for the specified content type, * or null if it is unable to determine one. * * @param contentType the content type (never null) * @param content the content */ public String getCharset(String contentType, InputStream content) throws IOException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?