-
- /**
- * Clear the current content.
- */
- public void clear() {
- builder.setLength(0);
- map.clear();
- }
-
- /**
- * The exported items in a serialised form.
- *
- * @param zip
- * TRUE to have zipped content, FALSE to have raw content, NULL
- * to let the system decide
- *
- * @return the items currently in this {@link Exporter}
- */
- public String toString(Boolean zip) {
- if (zip == null) {
- zip = builder.length() > 128;
- }
-
- if (zip) {
- return "ZIP:" + StringUtils.zip64(builder.toString());
- }
-
- return builder.toString();
- }
-
- /**
- * The exported items in a serialised form (possibly zipped).
- *
- * @return the items currently in this {@link Exporter}
- */
- @Override
- public String toString() {
- return toString(null);
- }