List of utility methods to do Object Deserialize
T | deserialize(@Nonnull byte[] byteArray) Deserialize a byte array of an object. ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); ObjectInput objectInput = null; try { objectInput = new ObjectInputStream(byteArrayInputStream); return (T) objectInput.readObject(); } finally { try { if (objectInput != null) { ... |
Object | deserialize(@Nullable final byte[] binaryInput) deserialize return (binaryInput != null) ? deserialize(new ByteArrayInputStream(binaryInput)) : null; |
Object | deserialize(byte[] bytes, boolean zipped) Deserialize a table of bytes to an Object instance. ByteArrayInputStream bi = new ByteArrayInputStream(bytes); ObjectInputStream oi; if (zipped) { oi = new ObjectInputStream(new GZIPInputStream(bi)); } else { oi = new ObjectInputStream(bi); Object o = oi.readObject(); ... |
T | deserialize(byte[] bytes, Class Deserialize a byte array into an object. ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes); ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream); Object object = objectInputStream.readObject(); return clazz.cast(object); |
T | deserialize(byte[] bytes, Class deserialize ByteArrayInputStream bais = null; ObjectInputStream ois = null; try { bais = new ByteArrayInputStream(bytes); ois = new ObjectInputStream(bais); Object object = ois.readObject(); return clazz.cast(object); } catch (Exception e) { ... |
T | deserialize(byte[] bytes, Class deserialize return OBJECT_MAPPER.readValue(bytes, klass);
|
S | deserialize(byte[] bytes, final Class TODO if (bytes != null) { try (final ObjectInputStream input = new ObjectInputStream(new ByteArrayInputStream(bytes))) { return asClass.cast(input.readObject()); } catch (IOException | ClassNotFoundException e) { e.printStackTrace(); return null; ... |
Object | deserialize(byte[] bytes, List deserialize try { final List<ClassLoader> classLoaderList = customClassLoaders; ByteArrayInputStream input = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ObjectInputStream(input) { @Override protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException { String className = desc.getName(); try { ... |
T | deserialize(byte[] data) deserialize try { ByteArrayInputStream in = new ByteArrayInputStream(data); ObjectInputStream ois = new ObjectInputStream(in); return (T) ois.readObject(); } catch (Exception e) { e.printStackTrace(); return null; ... |
T | deserialize(byte[] data) deserialize ObjectInputStream ois = null; ByteArrayInputStream is = null; try { is = new ByteArrayInputStream(data); ois = new ObjectInputStream(is); return (T) ois.readObject(); } catch (Exception e) { e.printStackTrace(); ... |