// @Override - not until Java 6 public BytesRefIterator iterator() { closed = true; return buffer.iterator(comparator); }
// @Override - not until Java 6 public void add(BytesRef utf8) { if (closed) throw new IllegalStateException(); buffer.append(utf8); }