/** * Reads the study data object from the supplied stream. * * @param dis - the stream to read from. * @throws IOException * @throws InstantiationException * @throws IllegalAccessException */ public void read(DataInputStream dis) throws IOException, InstantiationException, IllegalAccessException { setId(dis.readInt()); setForms(PersistentHelper.readMedium(dis, FormData.class)); }
/** * Writes the study data object to the supplied stream. * * @param dos - the stream to write to. * @throws IOException */ public void write(DataOutputStream dos) throws IOException { dos.writeInt(getId()); PersistentHelper.writeMedium(getForms(), dos); }