not sure but this will call StringBuffer.append(Object obj)
which calls super.append(String.valueOf(obj));
i.e. it is almost equal to data.append(b.toString())

is that what you want to call ?