MCPcopy Create free account
hub / github.com/Ape1ron/SpringAopInDeserializationDemo1 / serialize

Method serialize

src/main/java/Util.java:39–45  ·  view source on GitHub ↗
(final Object obj)

Source from the content-addressed store, hash-verified

37 }
38
39 public static byte[] serialize(final Object obj) throws IOException {
40 System.out.println("serialize obj: "+ obj.getClass().getName());
41 final ByteArrayOutputStream out = new ByteArrayOutputStream();
42 final ObjectOutputStream objOut = new ObjectOutputStream(out);
43 objOut.writeObject(obj);
44 return out.toByteArray();
45 }
46
47 public static Object deserialize(byte[] ser) throws IOException, ClassNotFoundException {
48 System.out.println("deserialize obj");

Callers 1

runGadgetsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected