예제 #1
0
 public void save() throws IOException {
   if (house != null) {
     persist.save(house, application.openFileOutput("house.xml", Application.MODE_PRIVATE));
   }
 }
예제 #2
0
 public House retrieve() throws IOException {
   if (house == null) {
     house = persist.retrieve(application.openFileInput("house.xml"));
   }
   return house;
 }