|
|||||||||
| 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.MemoryFileUpload
public class MemoryFileUpload
FileUpload that stores uploaded files in memory byte array.
| Field Summary | |
|---|---|
protected byte[] |
data
|
| Fields inherited from class jodd.servlet.upload.FileUpload |
|---|
fileTooBig, header, input, maxFileSize, size, valid |
| Method Summary | |
|---|---|
byte[] |
getFileContent()
Returns byte array containing uploaded file data. |
java.io.InputStream |
getFileInputStream()
Returns byte array input stream. |
boolean |
isInMemory()
Returns true as uploaded file is stored in memory. |
void |
processStream()
Reads data from input stream into byte array and stores file size. |
| 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 byte[] data
| Method Detail |
|---|
public byte[] getFileContent()
getFileContent in class FileUploadpublic boolean isInMemory()
true as uploaded file is stored in memory.
isInMemory in class FileUpload
public java.io.InputStream getFileInputStream()
throws java.io.IOException
getFileInputStream in class FileUploadjava.io.IOException
public void processStream()
throws java.io.IOException
processStream in class FileUploadjava.io.IOExceptionMultipartRequestInputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||