Top Description Constructors Methods
org.springframework.web.multipart.support

public Class ByteArrayMultipartFileEditor

extends ByteArrayPropertyEditor
Class Inheritance
Imports
java.io.IOException, org.springframework.beans.propertyeditors.ByteArrayPropertyEditor, org.springframework.lang.Nullable, org.springframework.web.multipart.MultipartFile

Custom java.beans.PropertyEditor for converting MultipartFiles to byte arrays.
Author
Juergen Hoeller
Since
13.10.2003

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getAsText()

Overrides org.springframework.beans.propertyeditors.ByteArrayPropertyEditor.getAsText.

Implements java.beans.PropertyEditor.getAsText.

Gets the property value as a string suitable for presentation to a human to edit.
public void
setValue(Object
The new target object to be edited. Note that this object should not be modified by the PropertyEditor, rather the PropertyEditor should create a new object to hold any modified value.
value
)

Overrides java.beans.PropertyEditorSupport.setValue.

Implements java.beans.PropertyEditor.setValue.

Set (or change) the object that is to be edited.
Inherited from org.springframework.beans.propertyeditors.ByteArrayPropertyEditor:
setAsText

Constructor Detail

ByteArrayMultipartFileEditorback to summary
public ByteArrayMultipartFileEditor()

Method Detail

getAsTextback to summary
public String getAsText()

Overrides org.springframework.beans.propertyeditors.ByteArrayPropertyEditor.getAsText.

Implements java.beans.PropertyEditor.getAsText.

Doc from java.beans.PropertyEditorSupport.getAsText.

Gets the property value as a string suitable for presentation to a human to edit.

Returns:String

The property value as a string suitable for presentation to a human to edit.

Returns null if the value can't be expressed as a string.

If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().

Annotations
@Override
setValueback to summary
public void setValue(Object value)

Overrides java.beans.PropertyEditorSupport.setValue.

Implements java.beans.PropertyEditor.setValue.

Doc from java.beans.PropertyEditorSupport.setValue.

Set (or change) the object that is to be edited.

Parameters
value:Object

The new target object to be edited. Note that this object should not be modified by the PropertyEditor, rather the PropertyEditor should create a new object to hold any modified value.

Annotations
@Override