Ejemplo n.º 1
0
 /**
  * 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));
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }