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

Method readObj4File

src/main/java/Util.java:27–32  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

25 }
26
27 public static Object readObj4File(String path) throws IOException, ClassNotFoundException {
28 System.out.println("get obj for "+ path);
29 FileInputStream fileInput = new FileInputStream(path);
30 ObjectInputStream input = new ObjectInputStream(fileInput);
31 return input.readObject();
32 }
33
34 public static void runGadgets(Object obj)throws Exception{
35 byte[] ser = serialize(obj);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected