public class BankSerializer
extends java.lang.Object
| Constructor | Description |
|---|---|
BankSerializer() |
| Modifier and Type | Method | Description |
|---|---|---|
static SavingsAccount |
buildSavingsAccountFromJson(java.lang.String filename) |
|
static void |
writeToJson(SavingsAccount savingsAccount,
java.lang.String filename) |
public static void writeToJson(SavingsAccount savingsAccount, java.lang.String filename) throws java.io.IOException
savingsAccount - to write to the filefilename - including the (full or relative) path to the filejava.io.IOException - if the file cannot be written (e.g. path is not found)public static SavingsAccount buildSavingsAccountFromJson(java.lang.String filename) throws java.io.IOException
filename - to read fromjava.io.IOException - if the file cannot be read (e.g. file is not found or format is incorrect)