Package jfun.yan.util.deserializer

Examples of jfun.yan.util.deserializer.Deserializer.deserialize()


   * @throws Throwable when any error happens.
   */
  public Object deserialize(Class type, String v)
  throws Throwable{
    final Deserializer des = (Deserializer)deserializers.get(type);
    if(des != null) return des.deserialize(v);
    else{
      final PropertyEditor editor = PropertyEditorManager.findEditor(type);
      if(editor==null){
        throw new IllegalArgumentException("cannot convert to "+
          Misc.getTypeName(type));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.