package seedu.address.storage;

import java.io.File;
import java.io.FileNotFoundException;

import javax.xml.bind.JAXBException;

import seedu.address.commons.exceptions.DataConversionException;
import seedu.address.commons.util.XmlUtil;

/**
 * Stores addressbook data in an XML file
 */
public class XmlFileStorage {
    /**
     * Saves the given addressbook data to the specified file.
     */
    public static void saveDataToFile(File file, XmlSerializableAddressBook addressBook)
            throws FileNotFoundException {
        try {
            XmlUtil.saveDataToFile(file, addressBook);
        } catch (JAXBException e) {
            assert false : "Unexpected exception " + e.getMessage();
        }
    }

    /**
     * Returns address book in the file or an empty address book
     */
    public static XmlSerializableAddressBook loadDataFromSaveFile(File file) throws DataConversionException,
                                                                            FileNotFoundException {
        try {
            return XmlUtil.getDataFromFile(file, XmlSerializableAddressBook.class);
        } catch (JAXBException e) {
            throw new DataConversionException(e);
        }
    }

}

@@ -246,27 +246,24 @@
  Stores 
-addressbook
+tasklist
  data in
@@ -344,19 +344,16 @@
 ven 
-addressbook
+tasklist
  dat
@@ -453,31 +453,25 @@
 able
-AddressBook addressBook
+TaskList taskList
 )%0A  
@@ -570,19 +570,16 @@
 le, 
-addressBook
+taskList
 );%0A 
@@ -722,28 +722,25 @@
 Returns 
-address book
+task list
  in the 
@@ -760,20 +760,17 @@
 pty 
-address book
+task list
 %0A   
@@ -807,27 +807,24 @@
 alizable
-AddressBook
+TaskList
  loadDat
@@ -1062,19 +1062,16 @@
 able
-AddressBook
+TaskList
 .cla

replace address book with task list in XmlFileStorage