/** * Created by IntelliJ IDEA. * User: me * Date: 13.09.2006 * Time: 18:47:36 * To change this template use File | Settings | File Templates. */ private Writer out; this.out = out; } public void run() { try { try { for (int c = 1; c <= 256; c++) out.write((char)c); } finally { out.close(); } getThreadGroup().uncaughtException(this, e); } } }