throws IOException
{
Writer out = new OutputStreamWriter(os,"UTF-8");
out.write("<table name='"+name+"'>\n");
try {
DBConnection dbConnection = db.getConnection();
try {
Statement s = dbConnection.getConnection().createStatement();
ResultSet r = s.executeQuery("select * from "+name);
ResultSetMetaData meta = r.getMetaData();
int columnCount = meta.getColumnCount();
out.write("<head>");
for (int i=1; i<=columnCount; i++) {