public void add(BytesRef utf8) {if (closed) throw new IllegalStateException();buffer.append(utf8);}
public void Add(BytesRef utf8){if (closed){throw new InvalidOperationException();}buffer.Append(utf8);}