- private StringBuilder builder;
-
- public Exporter() {
- map = new HashMap<Integer, Object>();
- builder = new StringBuilder();
- }
-
- public Exporter append(Object o) throws NotSerializableException {
- SerialUtils.append(builder, o, map);
- return this;
- }
-
- public void clear() {
- builder.setLength(0);
- map.clear();
- }