public class DefaultWebFileUploader extends Object implements IWebFileUploader
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BOUNDARY_TAG
文件名标识
|
static String |
FILE_TAG
文件名标识
|
protected com.nlf.extend.web.impl.DefaultWebFileUploader.FormItem |
formItem
表单项
|
static String |
KEY_TAG
参数名标识
|
static String |
MULTIPART_TAG
multipart标识
|
| 构造器和说明 |
|---|
DefaultWebFileUploader() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
append(byte[] boundary,
ByteArray cache) |
protected void |
appendFile(byte[] data) |
protected byte[] |
getBoundary(String contentType)
获取boundary
|
List<UploadFile> |
getFiles()
获取上传的文件
|
protected void |
parseItem(byte[] boundary,
ByteArray cache,
List<UploadFile> files) |
protected byte[] getBoundary(String contentType)
protected void append(byte[] boundary,
ByteArray cache)
throws IOException
IOExceptionprotected void appendFile(byte[] data)
throws IOException
IOExceptionprotected void parseItem(byte[] boundary,
ByteArray cache,
List<UploadFile> files)
throws IOException
IOExceptionpublic List<UploadFile> getFiles() throws ValidateException
IFileUploadergetFiles 在接口中 IFileUploaderValidateExceptionCopyright © 2020. All Rights Reserved.