예제 #1
0
 @SuppressWarnings("unchecked")
 public static List unserialize(String targetString) {
   if (targetString == null || targetString.equals("")) {
     return new ArrayList();
   }
   List result = null;
   try {
     result = (List) Serializer.unserialize(targetString, 0);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return result;
 }
예제 #2
0
 @SuppressWarnings("unchecked")
 public static Map unserialize(String targetString, boolean isTreeMap) {
   if (targetString == null || targetString.equals("")) {
     return new HashMap();
   }
   Map resultMap = null;
   try {
     resultMap = (Map) Serializer.unserialize(targetString, isTreeMap ? 1 : 2);
   } catch (Exception e) {
     e.printStackTrace();
   }
   return resultMap;
 }
예제 #3
0
package cn.jcenterhome.web.action.admin;