for(int i=0;i<level;i++){
sb.append(" - ");
}
sb.append(var.getName());
sb.append(":");
IFDValue value = var.getValue();
sb.append(value.toString());
sb.append("\n");
//print.err(value.getClass().getName());
if(value.hasChildren()){
Iterator it = value.getChildren().iterator();
while(it.hasNext()){
Object o=it.next();
//print.err(o.getClass().getName());
dump(sb,(IFDVariable) o,level+1);
//dump(sb,(IFDVariable) it.next(),level+1);