public class DiskFileUploadFactory extends java.lang.Object implements FileUploadFactory
DiskFileUpload
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
destFolder |
protected int |
maxFileSize |
Constructor and Description |
---|
DiskFileUploadFactory() |
DiskFileUploadFactory(java.lang.String destFolder) |
DiskFileUploadFactory(java.lang.String destFolder,
int maxFileSize) |
Modifier and Type | Method and Description |
---|---|
FileUpload |
create(MultipartRequestInputStream input)
Creates new instance of
uploaded file . |
int |
getMaxFileSize() |
DiskFileUploadFactory |
setMaxFileSize(int maxFileSize)
Sets maximum file upload size.
|
DiskFileUploadFactory |
setUploadDir(java.lang.String destFolder) |
public DiskFileUploadFactory() throws java.io.IOException
java.io.IOException
public DiskFileUploadFactory(java.lang.String destFolder) throws java.io.IOException
java.io.IOException
public DiskFileUploadFactory(java.lang.String destFolder, int maxFileSize) throws java.io.IOException
java.io.IOException
public DiskFileUploadFactory setUploadDir(java.lang.String destFolder) throws java.io.IOException
java.io.IOException
public int getMaxFileSize()
public DiskFileUploadFactory setMaxFileSize(int maxFileSize)
public FileUpload create(MultipartRequestInputStream input)
uploaded file
.create
in interface FileUploadFactory
Copyright © 2003-present Jodd Team