public OrderIO() throws RemoteException { super(); orderlist = new ArrayList<OrderPO>(); IOHelper io = new IOHelper(); IOHelper io2 = new IOHelper(); try { orderlist = (ArrayList<OrderPO>) io.readFromDisk(orderfilepath); orderID = Long.valueOf(String.valueOf(io2.readFromDisk(nextIDfilepath))).longValue(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
public InnerAccountIO() throws RemoteException { super(); IOHelper io = new IOHelper(); innerAccountList = new ArrayList<InnerAccountPO>(); try { innerAccountList = (ArrayList<InnerAccountPO>) io.readFromDisk(filename); } catch (ClassNotFoundException e) { } catch (IOException e) { } }