Exemplo n.º 1
0
 protected void fillFields(RecordInputStream in) {
   field_1_linkType = in.readByte();
   field_2_referenceType = in.readByte();
   field_3_options = in.readShort();
   field_4_indexNumberFmtRecord = in.readShort();
   field_5_formulaOfLink = new loci.poi.hssf.record.LinkedDataFormulaField();
   field_5_formulaOfLink.fillField(in);
 }
Exemplo n.º 2
0
  public Object clone() {
    LinkedDataRecord rec = new LinkedDataRecord();

    rec.field_1_linkType = field_1_linkType;
    rec.field_2_referenceType = field_2_referenceType;
    rec.field_3_options = field_3_options;
    rec.field_4_indexNumberFmtRecord = field_4_indexNumberFmtRecord;
    rec.field_5_formulaOfLink =
        ((loci.poi.hssf.record.LinkedDataFormulaField) field_5_formulaOfLink.clone());
    ;
    return rec;
  }
Exemplo n.º 3
0
  public int serialize(int offset, byte[] data) {
    int pos = 0;

    LittleEndian.putShort(data, 0 + offset, sid);
    LittleEndian.putShort(data, 2 + offset, (short) (getRecordSize() - 4));

    data[4 + offset + pos] = field_1_linkType;
    data[5 + offset + pos] = field_2_referenceType;
    LittleEndian.putShort(data, 6 + offset + pos, field_3_options);
    LittleEndian.putShort(data, 8 + offset + pos, field_4_indexNumberFmtRecord);
    pos += field_5_formulaOfLink.serializeField(pos + 10 + offset, data);

    return getRecordSize();
  }
Exemplo n.º 4
0
 /** Size of record (exluding 4 byte header) */
 public int getRecordSize() {
   return 4 + 1 + 1 + 2 + 2 + field_5_formulaOfLink.getSize();
 }