Пример #1
0
 // @Override - not until Java 6
 public BytesRefIterator iterator() {
   closed = true;
   return buffer.iterator(comparator);
 }
Пример #2
0
 // @Override - not until Java 6
 public void add(BytesRef utf8) {
   if (closed) throw new IllegalStateException();
   buffer.append(utf8);
 }