|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.richfaces.model.UploadItem
public class UploadItem
Class provides object holder for file uploaded. Instance of this type will be returned by UploadEvent after appropriate listener called after uploading has been completed.
| Constructor Summary | |
|---|---|
UploadItem(java.lang.String fileName,
int fileSize,
java.lang.String contentType,
java.lang.Object file)
Constructor for the UploadItem |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
|
byte[] |
getData()
This method should called only in case of FALSE value returned by isTempFile() method. |
java.io.File |
getFile()
This method should called only in case of TRUE value returned by isTempFile() method. |
java.lang.String |
getFileName()
|
int |
getFileSize()
|
boolean |
isTempFile()
Return true if file is holding as java.io.File type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UploadItem(java.lang.String fileName,
int fileSize,
java.lang.String contentType,
java.lang.Object file)
| Method Detail |
|---|
public boolean isTempFile()
public java.io.File getFile()
isTempFile() method.
Otherwise null value will be returned by this method.
public byte[] getData()
isTempFile() method.
Otherwise null value will be returned by this method.
java.lang.Exceptionpublic java.lang.String getFileName()
public java.lang.String getContentType()
public int getFileSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||