Lattice Deforming Water: keeping a boat dry

I just read an archived thread that says a lattice can be used to displace water to keep the inside of a boat dry:

http://blenderartists.org/forum/archive/index.php/t-107494.html

Any advice on how to do this?