Exemplo n.º 1
0
 protected String encodeCookie(SerializableCookie paramSerializableCookie) {
   ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
   try {
     new ObjectOutputStream(localByteArrayOutputStream).writeObject(paramSerializableCookie);
     return byteArrayToHexString(localByteArrayOutputStream.toByteArray());
   } catch (Exception localException) {
     while (true)
       Log.e(
           "PersistentCookieStore",
           "Error encoding cookie + " + paramSerializableCookie.toString());
   }
 }
Exemplo n.º 2
0
 protected Cookie decodeCookie(String paramString) {
   ByteArrayInputStream localByteArrayInputStream =
       new ByteArrayInputStream(hexStringToByteArray(paramString));
   Object localObject = null;
   try {
     Cookie localCookie =
         ((SerializableCookie) new ObjectInputStream(localByteArrayInputStream).readObject())
             .getCookie();
     localObject = localCookie;
     return localObject;
   } catch (Exception localException) {
     while (true) Log.e("PersistentCookieStore", "Error decoding cookie + " + paramString);
   }
 }