(Object f, String filename)
| 34 | } |
| 35 | |
| 36 | public static void write(Object f, String filename) throws FileNotFoundException { |
| 37 | XMLEncoder encoder = |
| 38 | new XMLEncoder( |
| 39 | new BufferedOutputStream( |
| 40 | new FileOutputStream(filename))); |
| 41 | encoder.writeObject(f); |
| 42 | encoder.close(); |
| 43 | } |
| 44 | |
| 45 | public static Object read(String filename) throws FileNotFoundException { |
| 46 | XMLDecoder decoder = |
no outgoing calls
no test coverage detected