|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.servlet.params.InMemoryFileParameter
public class InMemoryFileParameter
Uploaded file managed in memory
| Constructor Summary | |
|---|---|
InMemoryFileParameter(org.apache.commons.fileupload.FileItemStream item)
|
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Get the file contents as a byte array |
java.lang.String |
getContentType()
Get the file content-type. |
java.lang.String |
getFilename()
Get the uploaded filename. |
long |
getFileSize()
Get the file size, -1 if unknown |
java.io.InputStream |
getStream()
Get the file contents as an input stream. |
void |
setContentType(java.lang.String contentType)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryFileParameter(org.apache.commons.fileupload.FileItemStream item)
| Method Detail |
|---|
public byte[] getBytes()
FileParameter
getBytes in interface FileParameter
public java.io.InputStream getStream()
throws java.io.IOException
FileParameter
getStream in interface FileParameterjava.io.IOExceptionpublic java.lang.String getContentType()
FileParameter
getContentType in interface FileParameterpublic void setContentType(java.lang.String contentType)
public long getFileSize()
FileParameter
getFileSize in interface FileParameterpublic java.lang.String getFilename()
FileParameter
getFilename in interface FileParameterpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||