private String toString(Object o) { Object f = format(o); if (f == null) { return "null"; } else if (f instanceof String) { return (String)f; } else { return o.toString(); } }
private String toString(Object o) { Object f = format(o); if (f == null) { return "null"; } else if (f instanceof String) { return (String)f; } else { return o.toString(); } }
public final void print(Object o) throws IOException { if (o instanceof GString) { GString gs = (GString)o; Object[] values = gs.getValues(); for (int i = 0;i < values.length;i++) { values[i] = format(values[i]); } renderContext.getPrinter().provide(Chunk.create(o.toString())); } else { renderContext.getPrinter().provide(Chunk.create(toString(o))); } } }
public final void print(Object o) throws IOException { if (o instanceof GString) { GString gs = (GString)o; Object[] values = gs.getValues(); for (int i = 0;i < values.length;i++) { values[i] = format(values[i]); } renderContext.getPrinter().provide(Chunk.create(o.toString())); } else { renderContext.getPrinter().provide(Chunk.create(toString(o))); } } }