this.arrayBuilder = arrayBuilder;
}
protected Object decode(String tag, Object rep) {
ReadHandler d = handlers.get(tag);
if(d != null) {
return d.fromRep(rep);
} else if(defaultHandler != null) {
return defaultHandler.fromRep(tag, rep);
} else {
throw new RuntimeException("Cannot fromRep " + tag + ": " + rep.toString());
}