public void write(TBase t) throws IOException {
  try {
    t.write(binaryOut);
    dataOutputStream.flush();
  }
 catch (  TException e) {
    throw new IOException(e);
  }
}

public void write ( TBase t ) throws IOException { try { t . write ( binaryOut ) ; dataOutputStream . flush ( ) ; } catch ( TException e ) { throw new IOException ( e ) ; } }
write the object to disk .
