public final class UploadedFile extends Object
BeanDefinition.OSD_FILE_UPLOAD
Constructor and Description |
---|
UploadedFile()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deletes the underlying storage for this file.
|
String |
getContentType()
Gets the content type of this file.
|
InputStream |
getInputStream()
Gets the content of this file as an InputStream.
|
String |
getName()
Returns the original file name in the client's file system, as provided by the browser.
|
long |
getSize()
Returns the size of this file.
|
boolean |
isLoaded()
Returns true if a file is loaded.
|
public boolean isLoaded()
true
if and only if a file is available.public void clear()
After calling this method, isLoaded()
will always return false
.
public String getContentType()
null
if not available.public String getName()
null
if not available.public long getSize()
isLoaded()
returns false
.public InputStream getInputStream() throws IOException
isLoaded()
returns false
.IOException
- if an error occurs.