protected void write(OutputStream o, ClassDoc clazz)
        throws ClassNotFoundException {
        String cname     = mangleClassName(clazz.qualifiedName());
        PrintWriter pw   = wrapWriter(o);
        fields = clazz.fields();
        methods = clazz.methods();
        generateDeclsForClass(pw, clazz, cname);
    }