|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUploadFile
Represents a file uploaded from a client side form.
Method Summary | |
---|---|
String |
getContentType()
Returns the MIME type specified when the file was uploaded. |
String |
getFileName()
Returns the name of the file that was uploaded. |
String |
getFilePath()
Returns the complete path, as reported by the client browser. |
long |
getSize()
Returns the size, in bytes, of the uploaded content. |
InputStream |
getStream()
Returns an input stream of the content of the file. |
boolean |
isInMemory()
Returns true if the uploaded content is in memory. |
void |
write(File file)
Writes the content of the file to a known location. |
Method Detail |
---|
String getFileName()
String getFilePath()
InputStream getStream()
As of release 1.0.8, this will be a a ByteArrayInputStream
,
but that, too, may change (a future implementation may upload the stream
to a temporary file and return an input stream from that).
String getContentType()
void write(File file)
boolean isInMemory()
long getSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |