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
ConstructorsConstructorDescriptionCmsUgcDataItem(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_CmsFormDataItemGets the data from the field as a byte array.- Specified by:
getDatain interfaceI_CmsFormDataItem- Returns:
- the field data
- See Also:
-
getFieldName
Description copied from interface:I_CmsFormDataItemGets the field name.- Specified by:
getFieldNamein interfaceI_CmsFormDataItem- Returns:
- the field name
- See Also:
-
getFileName
Description copied from interface:I_CmsFormDataItemGets the file name, if this is a file upload field.- Specified by:
getFileNamein interfaceI_CmsFormDataItem- Returns:
- the file name
- See Also:
-