void writeStateFile(ParcelFileDescriptor stateFile) throws IOException {
  FileOutputStream outstream=new FileOutputStream(stateFile.getFileDescriptor());
  DataOutputStream out=new DataOutputStream(outstream);
  out.writeInt(AGENT_VERSION);
  out.writeInt(mFilling);
  out.writeBoolean(mAddMayo);
  out.writeBoolean(mAddTomato);
}

void writeStateFile ( ParcelFileDescriptor stateFile ) throws IOException { FileOutputStream outstream = new FileOutputStream ( stateFile . getFileDescriptor ( ) ) ; DataOutputStream out = new DataOutputStream ( outstream ) ; out . writeInt ( AGENT_VERSION ) ; out . writeInt ( mFilling ) ; out . writeBoolean ( mAddMayo ) ; out . writeBoolean ( mAddTomato ) ; }
write out the new state file : the version number , followed by the three bits of data as we sent them off to the backup transport .
