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

Method writeObj2File

src/main/java/Util.java:18–25  ·  view source on GitHub ↗
(Object obj,String path)

Source from the content-addressed store, hash-verified

16 }
17
18 public static void writeObj2File(Object obj,String path) throws IOException {
19 System.out.println("set obj to "+ path);
20 FileOutputStream fileOut = new FileOutputStream(path);
21 ObjectOutputStream out = new ObjectOutputStream(fileOut);
22 out.writeObject(obj);
23 out.close();
24 fileOut.close();
25 }
26
27 public static Object readObj4File(String path) throws IOException, ClassNotFoundException {
28 System.out.println("get obj for "+ path);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected