| 程序包 | 说明 |
|---|---|
| com.mzlion.core.http |
| 限定符和类型 | 方法和说明 |
|---|---|
static ContentType |
ContentType.create(String mimeType)
根据MIME类型创建
|
static ContentType |
ContentType.create(String mimeType,
Charset charset)
根据MIME类型创建
|
static ContentType |
ContentType.create(String mimeType,
String charset)
根据MIME类型创建
|
static ContentType |
ContentType.parseByFileExt(String fileExt)
通过文件后缀名转为MIME
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ResponseDownloadUtils.download(String displayName,
InputStream in,
long contentLength,
ContentType contentType,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
下载文件
|
Copyright © 2017. All rights reserved.