public class FileUploadRenameImpl extends Object implements FileUploadReName
Constructor and Description |
---|
FileUploadRenameImpl() |
FileUploadRenameImpl(File repository) |
Modifier and Type | Method and Description |
---|---|
File |
getRepository()
获取文件上传的临时目录
|
String |
reName(String localFileName,
javax.servlet.http.HttpServletRequest request)
对上传过来的本地文件进行重新命名,返回的是重新命名后的文件全路径
|
void |
setRepository(File repository)
设置文件上传的临时目录
|
public FileUploadRenameImpl()
public FileUploadRenameImpl(File repository)
public File getRepository()
FileUploadReName
getRepository
in interface FileUploadReName
public void setRepository(File repository)
FileUploadReName
setRepository
in interface FileUploadReName
public String reName(String localFileName, javax.servlet.http.HttpServletRequest request)
FileUploadReName
reName
in interface FileUploadReName
Copyright © 2006–2018 TinyGroup. All rights reserved.