1 22 package org.jboss.util.propertyeditor; 23 24 import java.beans.PropertyEditorSupport ; 25 26 31 public class ByteArrayEditor extends PropertyEditorSupport  32 { 33 35 public void setAsText(final String text) 36 { 37 if (PropertyEditors.isNull(text, false, false)) 38 { 39 setValue(null); 40 return; 41 } 42 Object newValue = text.getBytes(); 43 setValue(newValue); 44 } 45 } 46 | Popular Tags |