org.springframework.beans.propertyeditors
public class: ByteArrayPropertyEditor [javadoc |
source]
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.ByteArrayPropertyEditor
All Implemented Interfaces:
PropertyEditor
Direct Known Subclasses:
ByteArrayMultipartFileEditor
Editor for byte arrays. Strings will simply be converted to
their corresponding byte representations.
Also see:
- java.lang.String#getBytes
- author:
Juergen - Hoeller
- since:
1.0.1 -
| Method from org.springframework.beans.propertyeditors.ByteArrayPropertyEditor Summary: |
|---|
|
getAsText, setAsText |
| Methods from java.beans.PropertyEditorSupport: |
|---|
|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor |
| Method from org.springframework.beans.propertyeditors.ByteArrayPropertyEditor Detail: |
public String getAsText() {
byte[] value = (byte[]) getValue();
return (value != null ? new String(value) : "");
}
|
public void setAsText(String text) {
setValue(text != null ? text.getBytes() : null);
}
|