Class FileDefinition
java.lang.Object
com.aquima.web.components.fileupload.controller.FileDefinition
- All Implemented Interfaces:
IFileDefinition
Wrapper class for uploaded files
- Author:
- N. van Noorloos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the content type.This method returns the file name.This method returns the file input stream.long
getSize()
This method returns the file size.
-
Constructor Details
-
Method Details
-
getFilename
Description copied from interface:IFileDefinition
This method returns the file name.- Specified by:
getFilename
in interfaceIFileDefinition
- Returns:
- The filename
-
getContentType
Description copied from interface:IFileDefinition
This method returns the content type.- Specified by:
getContentType
in interfaceIFileDefinition
- Returns:
- The content type
-
getSize
public long getSize()Description copied from interface:IFileDefinition
This method returns the file size.- Specified by:
getSize
in interfaceIFileDefinition
- Returns:
- The file size
-
getInputStream
Description copied from interface:IFileDefinition
This method returns the file input stream.- Specified by:
getInputStream
in interfaceIFileDefinition
- Returns:
- The inputStream
- Throws:
IOException
- when something goes wrong
-