public class MemoryFileUpload extends FileUpload
FileUpload
that stores uploaded files in memory byte array.Modifier and Type | Field and Description |
---|---|
protected byte[] |
data |
fileTooBig, header, input, maxFileSize, size, valid
Modifier and Type | Method and Description |
---|---|
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.
|
getHeader, getMaxFileSize, getSize, isFileTooBig, isUploaded, isValid, toString
public byte[] getFileContent()
getFileContent
in class FileUpload
public boolean isInMemory()
true
as uploaded file is stored in memory.isInMemory
in class FileUpload
public java.io.InputStream getFileInputStream()
getFileInputStream
in class FileUpload
public void processStream() throws java.io.IOException
processStream
in class FileUpload
java.io.IOException
MultipartRequestInputStream
Copyright © 2003-present Jodd Team