blob: 06ed2022ac84c2ad071b42a321028a72465cc20a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package design.persistence;
import java.io.File;
import java.io.IOException;
import design.model.DataHandler;
public class JSONHandler implements DataHandler
{
public void exportPersonalData(File fileName) throws IOException {
JSONPersonalDatabase.instance().exportData(); // fix this
}
public void importPersonalData(File fileName) throws IOException {
JSONPersonalDatabase.instance().importData(fileName);
}
public void exportLeagueData(File fileName)
{
// TO DO: exporting league data
}
public void importLeagueData(File fileName)
{
// TO DO: importing league data
}
}
|