|
||||||||||
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 | |
---|---|
java.lang.String |
getContentType()
Returns the MIME type specified when the file was uploaded. |
java.lang.String |
getFileName()
Returns the name of the file that was uploaded. |
java.lang.String |
getFilePath()
Returns the complete path, as reported by the client browser. |
long |
getSize()
Returns the size, in bytes, of the uploaded content. |
java.io.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(java.io.File file)
Writes the content of the file to a known location. |
Method Detail |
---|
java.lang.String getFileName()
java.lang.String getFilePath()
java.io.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).
java.lang.String getContentType()
void write(java.io.File file)
boolean isInMemory()
long getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |