public interface UploadedFile
CoreInputFile| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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
IOExceptionvoid dispose()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.