Generate Java classes with model data from blender

extract.py is a snippet of python that is runnable in the blender console
it will print the textual representation of a Java class with the specified class name,
containing Java array literals with the 3d model data from the specified
mesh

usage:

m = bpy.data.objects["box"]
f = open("~/boxes/box.java")
extract_mesh("box", m, f)

Tested with blender v2.67a (2.67.0) r56945
Added base class Model.java referenced in extract.py

And a generated and probable faulty 3d space ship model, including shaders
and textures (original model by http://opengameart.org/users/surt)
Added the fighter space ship to scene, model is busted :)