public static Object deserialize(String str) throws IOException { if (str == null || str.length() == 0) { return null; } try { ByteArrayInputStream serialObj = new ByteArrayInputStream( decodeBytes(str)); ObjectInputStream objStream = new ObjectInputStream(serialObj); return objStream.readObject(); } catch (Exception e) { throw new IOException("Deserialization error: " + e.getMessage(), e); } }
public static Object deserialize(String str) throws IOException { if (str == null || str.length() == 0) { return null; } try { ByteArrayInputStream serialObj = new ByteArrayInputStream( decodeBytes(str)); ObjectInputStream objStream = new ObjectInputStream(serialObj); return objStream.readObject(); } catch (Exception e) { throw new IOException("Deserialization error: " + e.getMessage(), e); } }
public static Object deserialize(String str) throws IOException { if (str == null || str.length() == 0) { return null; } try { ByteArrayInputStream serialObj = new ByteArrayInputStream( decodeBytes(str)); ObjectInputStream objStream = new ObjectInputStream(serialObj); return objStream.readObject(); } catch (Exception e) { throw new IOException("Deserialization error: " + e.getMessage(), e); } }
public static Object deserialize(String str) throws IOException { if (str == null || str.length() == 0) { return null; } try { ByteArrayInputStream serialObj = new ByteArrayInputStream( decodeBytes(str)); ObjectInputStream objStream = new ObjectInputStream(serialObj); return objStream.readObject(); } catch (Exception e) { throw new IOException("Deserialization error: " + e.getMessage(), e); } }
public static Object deserialize(String str) throws IOException { if (str == null || str.length() == 0) { return null; } try { ByteArrayInputStream serialObj = new ByteArrayInputStream( decodeBytes(str)); ObjectInputStream objStream = new ObjectInputStream(serialObj); return objStream.readObject(); } catch (Exception e) { throw new IOException("Deserialization error: " + e.getMessage(), e); } }