(Serializable s, String filename)
| 32 | |
| 33 | |
| 34 | static public void write(Serializable s, String filename) throws IOException { |
| 35 | try(ObjectOutputStream o = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(new File(filename))))) { |
| 36 | o.writeObject(s); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | static public Serializable read(String filename) throws IOException, ClassNotFoundException { |
| 41 | try(ObjectInputStream o = new ObjectInputStream(new BufferedInputStream(new FileInputStream(new File(filename))))) { |
nothing calls this directly
no test coverage detected