org.jdesktop.html.form
Interface FileInput

All Superinterfaces:
Input

public interface FileInput
extends Input

Represents an Input for Files.


Method Summary
 String getContentType()
          Gets the content type of the File.
 String getFilename()
          The filename associated with this file.
 InputStream getValueStream()
          Returns the value represented by this FileItem as an input stream.
 
Methods inherited from interface org.jdesktop.html.form.Input
getName, getValue, setValue
 

Method Detail

getContentType

String getContentType()
Gets the content type of the File. This must be formatted as a mime type, and be something reasonable such as text/plain, text/xml, or image/png

Returns:
The content type represented by this FileInput.

getFilename

String getFilename()
The filename associated with this file. This may be null, but it is strongly encouraged to provide a file name for uploaded files.

Returns:
the name of the file being uploaded

getValueStream

InputStream getValueStream()
Returns the value represented by this FileItem as an input stream. If null, then the stream is ignored when constructing the response. If a bad file was chosen, then this value may be null.

Returns: