|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UploadedFile
Interface that describes the contents of a single file.
CoreInputFile
Method Summary | |
---|---|
void |
dispose()
Disposes all resources allocated for this file. |
String |
getContentType()
Returns the MIME type of the file. |
String |
getFilename()
Returns the filename reported by the client. |
InputStream |
getInputStream()
Returns an InputStream that can be used to read the file. |
long |
getLength()
Returns the total length (in bytes) of the file. |
Object |
getOpaqueData()
Return opaque data associated with the file when it was processed by the UploadedFileProcessor . |
Method Detail |
---|
String getFilename()
String getContentType()
long getLength()
getOpaqueData()
Object getOpaqueData()
UploadedFileProcessor
.
This is always null with the default UploadedFileProcessor
,
but custom implementations may use this to pass additional information
needed for later processing. (Note that Apache Trinidad cannot
cannot guarantee that the instance returned from
code>UploadedFileProcessor is the same one made available
later.
getLength()
InputStream getInputStream() throws IOException
IOException
void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |