public void writeCustomObject(Object object) throws IOException {
  throw new IOException("unexpected object: " + object);
}

public void writeCustomObject ( Object object ) throws IOException { throw new IOException ( "unexpected object: " + object ) ; }
applications which override this can do custom serialization .
