|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.servlet.upload.FileUpload
jodd.servlet.upload.impl.DiskFileUpload
public class DiskFileUpload
FileUpload that saves uploaded files directly to destination folder.
| Field Summary | |
|---|---|
protected java.io.File |
destFolder
|
protected java.io.File |
file
|
| Fields inherited from class jodd.servlet.upload.FileUpload |
|---|
fileTooBig, header, input, maxFileSize, size, valid |
| Method Summary | |
|---|---|
java.io.File |
getDestinationFolder()
Returns destination folder. |
java.io.File |
getFile()
Returns uploaded and saved file. |
byte[] |
getFileContent()
Returns files content from disk file. |
java.io.InputStream |
getFileInputStream()
Returns new buffered file input stream. |
boolean |
isInMemory()
Returns false as uploaded file is stored on disk. |
protected void |
processStream()
Process request input stream. |
| Methods inherited from class jodd.servlet.upload.FileUpload |
|---|
getHeader, getMaxFileSize, getSize, isFileTooBig, isUploaded, isValid, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.io.File destFolder
protected java.io.File file
| Method Detail |
|---|
public boolean isInMemory()
false as uploaded file is stored on disk.
isInMemory in class FileUploadpublic java.io.File getDestinationFolder()
public java.io.File getFile()
public byte[] getFileContent()
throws java.io.IOException
null
getFileContent in class FileUploadjava.io.IOException
public java.io.InputStream getFileInputStream()
throws java.io.IOException
getFileInputStream in class FileUploadjava.io.IOException
protected void processStream()
throws java.io.IOException
FileUploadsize
attribute after successful processing. This method also must set the
valid attribute.
processStream in class FileUploadjava.io.IOExceptionMultipartRequestInputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||