예제 #1
0
 @Override
 protected void addText(final byte[] value, final int dist, final byte kind) throws IOException {
   tout.write1(kind);
   tout.write2(0);
   tout.write5(textOff(value, true));
   tout.write4(dist);
   tout.write4(meta.size++);
 }
예제 #2
0
 @Override
 protected void addDoc(final byte[] value) throws IOException {
   tout.write1(Data.DOC);
   tout.write2(0);
   tout.write5(textOff(value, true));
   tout.write4(0);
   tout.write4(meta.size++);
 }
예제 #3
0
  @Override
  protected void addAttr(final int name, final byte[] value, final int dist, final int uri)
      throws IOException {

    tout.write1(dist << 3 | Data.ATTR);
    tout.write2(name);
    tout.write5(textOff(value, false));
    tout.write4(uri);
    tout.write4(meta.size++);
  }