Groovy Documentation

org.jdesktop.html.form
[Java] Interface FileInput

org.jdesktop.html.form.Input
  org.jdesktop.html.form.FileInput
All Superinterfaces:
Input

public interface FileInput
extends Input

Represents an Input for Files.

Authors:
Richard


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 Input
getName, getValue, setValue
 

Method Detail

getContentType

public 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

public 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

public 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:


 

Groovy Documentation