Display the data XMLDecoder is = new XMLDecoder( new BufferedInputStream( new FileInputStream(FILENAME))); System.out.println(is.writeObject()); is.close();
XMLDecoder is = new XMLDecoder( new BufferedInputStream( new FileInputStream(FILENAME))); System.out.println(is.writeObject()); is.close();
new SerialDemoXML().save(); new SerialDemoXML().dump();
Save the data to disk. XMLEncoder os = new XMLEncoder( new BufferedOutputStream( new FileOutputStream(FILENAME))); os.writeObject(theGraph); os.close();
XMLEncoder os = new XMLEncoder( new BufferedOutputStream( new FileOutputStream(FILENAME))); os.writeObject(theGraph); os.close();