2019-07-07 18:14:47 +10:00
|
|
|
package bdf;
|
|
|
|
|
2019-07-07 19:26:18 +10:00
|
|
|
import bdf.file.BdfFileManager;
|
2019-07-07 18:14:47 +10:00
|
|
|
import bdf.types.BdfArray;
|
|
|
|
import bdf.types.BdfObject;
|
|
|
|
|
|
|
|
public class Main {
|
|
|
|
|
|
|
|
public static void main(String[] args)
|
|
|
|
{
|
|
|
|
|
2019-07-07 19:35:58 +10:00
|
|
|
BdfFileManager file = new BdfFileManager("test/test2/db.bdf");
|
2019-07-07 18:14:47 +10:00
|
|
|
|
|
|
|
|
2019-07-07 19:26:18 +10:00
|
|
|
file.setArray(new BdfArray());
|
|
|
|
file.getArray().add(BdfObject.getNew("Hello"));
|
|
|
|
System.out.println(file.getArray().get(0).getString());
|
|
|
|
file.saveDatabase();
|
2019-07-07 18:14:47 +10:00
|
|
|
|
2019-07-07 19:26:18 +10:00
|
|
|
|
2019-07-07 19:35:58 +10:00
|
|
|
BdfFileManager file2 = new BdfFileManager("test/test2/db.bdf");
|
2019-07-07 19:26:18 +10:00
|
|
|
System.out.println(file2.getArray().get(0).getString());
|
2019-07-07 18:14:47 +10:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|