/** * Deserialize an object value from the given stream. */ public static Object deserialize(InputStream in, StoreContext ctx) { try { if (ctx == null) return new ClassResolvingObjectInputStream(in).readObject(); return new PersistentObjectInputStream(in, ctx).readObject(); } catch (Exception e) { throw new StoreException(e); } }
/** * Deserialize an object value from the given stream. */ public static Object deserialize(InputStream in, StoreContext ctx) { try { if (ctx == null) return new ClassResolvingObjectInputStream(in).readObject(); return new PersistentObjectInputStream(in, ctx).readObject(); } catch (Exception e) { throw new StoreException(e); } }
/** * Deserialize an object value from the given stream. */ public static Object deserialize(InputStream in, StoreContext ctx) { try { if (ctx == null) return new ClassResolvingObjectInputStream(in).readObject(); return new PersistentObjectInputStream(in, ctx).readObject(); } catch (Exception e) { throw new StoreException(e); } }
/** * Deserialize an object value from the given stream. */ public static Object deserialize(InputStream in, StoreContext ctx) { try { if (ctx == null) return new ClassResolvingObjectInputStream(in).readObject(); return new PersistentObjectInputStream(in, ctx).readObject(); } catch (Exception e) { throw new StoreException(e); } }
/** * Deserialize an object value from the given stream. */ public static Object deserialize(InputStream in, StoreContext ctx) { try { if (ctx == null) return new ClassResolvingObjectInputStream(in).readObject(); return new PersistentObjectInputStream(in, ctx).readObject(); } catch (Exception e) { throw new StoreException(e); } }