01: package org.osbl.item;
02:
03: import org.osbl.ItemCollector;
04:
05: /**
06: * Created by IntelliJ IDEA.
07: * User: hengels
08: * Date: Nov 8, 2006
09: * Time: 12:10:32 PM
10: * To change this template use File | Settings | File Templates.
11: */
12: public abstract class AbstractItemCollector implements ItemCollector {
13: public void refresh() {
14: }
15:
16: protected String build(StringBuilder builder, String... parts) {
17: int length = builder.length();
18: for (String part : parts)
19: builder.append(part);
20:
21: String item = builder.toString();
22: builder.setLength(length);
23: return item;
24: }
25: }
|