Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private final void setWriteObject() {
- try {
- Out.println("Inizialized object serialization...");
- FileOutputStream fos = new FileOutputStream(the_path);
- ObjectOutputStream oos = new ObjectOutputStream(fos);
- oos.writeObject(the_object);
- oos.flush();
- oos.close();
- Out.println("[ OK ]\n");
- } catch(IOException e) {
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment