1. how to write own serializer/deserializer? stackoverflow.comI need to save objects - instances of classes - in my app like some filetype. How I can write own serializer/deserializer for it? Or exist some easier way how to ... |
2. How to be sure a file has been successfully written? stackoverflow.comI'm adding autosave functionality to a graphics application in Java. The application periodically autosaves the current document and also autosaves on exit. When the user starts the application, the autosave file ... |
3. problem writing serialized component in a file forums.oracle.com |
4. Serialization without writing it in a file forums.oracle.com//De-serialization ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); ObjectInputStream in = new ObjectInputStream(bis); SerializableClass in_serl = (SerializableClass) in.readObject(); System.out.println(in_serl.getName()); } But, doesn't this also means that I will need to serialize and de-serialize the object within the boundary of a single class. Because once the main method of the above class end, the object bos cease to exist. I need to excess theis ... |