Пример #1
0
 public static Map bDecode(byte[] bytes) {
   if (formatters == null) {
     return new HashMap();
   }
   try {
     return formatters.bDecode(bytes);
   } catch (IOException e) {
     e.printStackTrace();
     return new HashMap();
   }
 }
Пример #2
0
 public static byte[] bEncode(Map map) {
   if (formatters == null) {
     return new byte[0];
   }
   try {
     return formatters.bEncode(map);
   } catch (IOException e) {
     e.printStackTrace();
     return new byte[0];
   }
 }