Package de.xima.fc.form.common.models
Interface IXUpload
-
- All Known Implementing Classes:
CompressedUpload,InterpolatedFileNameUpload
public interface IXUploadRepresents a file uploaded when a form was submitted.- Since:
- 7.0.11
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentType()StringgetFileName()StringgetFileNamePattern()InputStreamgetInputStream()
-
-
-
Method Detail
-
getContentType
String getContentType()
- Returns:
- Content type of the replacement file.
-
getFileNamePattern
String getFileNamePattern()
- Returns:
- When not blank, this pattern will be used for the file name. Placeholders within the file name are replaced.
-
getFileName
String getFileName()
- Returns:
- The name of the replacement file
-
getInputStream
InputStream getInputStream() throws IOException
- Returns:
- The data of the replacement file. When
null, the original file data is used. - Throws:
IOException- When the data of the replacement cannot be read.
-
-