public interface IUploadFile
Modifier and Type | Method and Description |
---|---|
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.
|
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()