Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
package cn.jcenterhome.web.action.admin;