Package org.openntf.domino.nsfdata.structs

Examples of org.openntf.domino.nsfdata.structs.LIST


      ByteBuffer data = getData().duplicate();
      data.order(ByteOrder.LITTLE_ENDIAN);
      data.position(data.position() + 32 + preceding);
      data.limit(data.position() + 2);
      LIST list = new LIST(data);
      int listEntries = list.getListEntries() & 0xFFFF;

      data = getData().duplicate();
      data.order(ByteOrder.LITTLE_ENDIAN);
      data.position(data.position() + 32 + preceding + 2);
      if (listEntries == 0 && totalLength > 2) {
View Full Code Here


      rawData.add((short) (aByte & 0xFF));
    }

    ByteBuffer data = ByteBuffer.wrap(this.getBytes());
    data.order(ByteOrder.nativeOrder());
    LIST list = new LIST(data);
    UNIVERSALNOTEID[] ids = new UNIVERSALNOTEID[list.getListEntries()];
    data.position(data.position() + LIST.SIZE);
    for (int i = 0; i < ids.length; i++) {
      ByteBuffer idData = data.duplicate();
      idData.limit(idData.position() + UNIVERSALNOTEID.SIZE);
      ids[i] = new UNIVERSALNOTEID(idData);
View Full Code Here

    byte[] oldBytes = this.getBytes();
    byte[] newBytes = new byte[oldBytes.length + UNIVERSALNOTEID.SIZE];
    System.arraycopy(oldBytes, 0, newBytes, 0, oldBytes.length);
    ByteBuffer data = ByteBuffer.wrap(newBytes);
    data.order(ByteOrder.LITTLE_ENDIAN);
    LIST list = new LIST(data);
    data.position(LIST.SIZE + (UNIVERSALNOTEID.SIZE * list.getListEntries()));
    list.setListEntries(list.getListEntries() + 1);
    data.put(value.getData());

    setBytes(data.array());
  }
View Full Code Here

TOP

Related Classes of org.openntf.domino.nsfdata.structs.LIST

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.