blob: 77ec987671c360cd4ef6d040e33bdb342d0b0932 (
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 file) throws IOException {
JSONPersonalDatabase.instance().exportData(file);
}
public void importPersonalData(File file) throws IOException {
JSONPersonalDatabase.instance().importData(file);
}
public void exportLeagueData(File file) throws IOException
{
JSONLeagueDatabase.instance().importData(file);
}
public void importLeagueData(File file) throws IOException
{
JSONLeagueDatabase.instance().exportData(file);
}
}
|