|
||||||||||
| 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. |
java.lang.String |
getContentType()Returns the MIME type of the file. |
java.lang.String |
getFilename()Returns the filename reported by the client. |
java.io.InputStream |
getInputStream()Returns an InputStream that can be used to read the file. |
long |
getLength()Returns the total length (in bytes) of the file. |
java.lang.Object |
getOpaqueData()Return opaque data associated with the file when it was processed by the UploadedFileProcessor. |
| Method Detail |
|---|
java.lang.String getFilename()
java.lang.String getContentType()
long getLength()
getOpaqueData()java.lang.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()
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionvoid dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.