return getType().toString() + ": " + value.toString();
}
public String toString(int length){
StandardTextWriter stw = new StandardTextWriter(true);
LimitedResultWriter lros = new LimitedResultWriter(length);
try {
stw.write(getValue(), lros);
}
catch (IOLimitReachedException iolrex){
// This is fine, ignore.
}
catch (IOException ioex) {
// This can never happen.
}
return getType().toString() + ": " + lros.toString();
}