|
Java Tool Kit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectITT.WAFr.Utilities.Upload.PostedFile
The PostedFile class represents the content and properties of a posted "multipart/form-data" encoded file.
The class does not have a public constructor, and can only be instantiated using the Upload.File(String) method.
Upload.File(String)| Method Summary | |
byte[] |
Bytes()
Retrieves a byte array representing the file content contained within the current PostedFile object. |
String |
Content()
Retrieves the String representation of the file content contained within the current PostedFile object. |
String |
ContentType()
Retrieves the MIME content type of the file contained within the current PostedFile object. |
boolean |
HasContent()
Retrieves a boolean indicating if the current PostedFile object contains any content. |
String |
Name()
Retrieves the name of the file without the absolute path for the file contained within the current PostedFile object. |
String |
Path()
Retrieves the absolute path to the file on the client machine in which the PostedFile originated. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public byte[] Bytes()
It is not necessary to call the HasContent() method to verify if the PostedFile contains content before calling this method as it will return null if no content is found.
null byte[] object if no content, or a byte array containing the PostedFile content.Content()public String Content()
It is not necessary to call the HasContent() method to verify if the PostedFile contains content before calling this method as it will return null if no content is found.
null if no content, or the String value of the PostedFile content.Bytes()public String ContentType()
public boolean HasContent()
true if the PostedFile has file content, false if the file is empty.public String Name()
Path()public String Path()
Name()
|
Java Tool Kit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||