MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / deserialize

Method deserialize

src/main/java/fieldbox/io/Raft.java:328–337  ·  view source on GitHub ↗
(String value)

Source from the content-addressed store, hash-verified

326 }
327
328 private Object deserialize(String value) throws IOException, ClassNotFoundException {
329 byte[] a = Base64.getDecoder().decode(value);
330 ByteArrayInputStream b = new ByteArrayInputStream(a);
331 ObjectInputStream oos = new ObjectInputStream(b);
332 try {
333 return oos.readObject();
334 } finally {
335 oos.close();
336 }
337 }
338}

Callers 1

fromValueMethod · 0.95

Calls 3

decodeMethod · 0.80
closeMethod · 0.65
readObjectMethod · 0.45

Tested by

no test coverage detected