Package org.opencms.ugc
Class CmsUgcDataItem
java.lang.Object
org.opencms.ugc.CmsUgcDataItem
- All Implemented Interfaces:
I_CmsFormDataItem
Implementation of the I_CmsFormDataItem which delegates its methods to a FileItem from Apache Commons Upload.
-
Constructor Summary
ConstructorDescriptionCmsUgcDataItem
(org.apache.commons.fileupload.FileItem item) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
Gets the data from the field as a byte array.Gets the field name.Gets the file name, if this is a file upload field.
-
Constructor Details
-
CmsUgcDataItem
Creates a new instance.- Parameters:
item
- the file item to wrap
-
-
Method Details
-
getData
Description copied from interface:I_CmsFormDataItem
Gets the data from the field as a byte array.- Specified by:
getData
in interfaceI_CmsFormDataItem
- Returns:
- the field data
- See Also:
-
getFieldName
Description copied from interface:I_CmsFormDataItem
Gets the field name.- Specified by:
getFieldName
in interfaceI_CmsFormDataItem
- Returns:
- the field name
- See Also:
-
getFileName
Description copied from interface:I_CmsFormDataItem
Gets the file name, if this is a file upload field.- Specified by:
getFileName
in interfaceI_CmsFormDataItem
- Returns:
- the file name
- See Also:
-