(Object obj,String path)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected