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);
 }
Beispiel #2
0
  protected void fillFields(RecordInputStream in) {
    fHighByte = BitFieldFactory.getInstance(0x01); // have to init here, since we are being called
    // from super, and class level init hasnt been done.
    field_1_xf_index = in.readShort();
    if (getType() == STYLE_BUILT_IN) {
      field_2_builtin_style = in.readByte();
      field_3_outline_style_level = in.readByte();
    } else if (getType() == STYLE_USER_DEFINED) {
      field_2_name_length = in.readShort();
      field_3_string_options = in.readByte();

      byte[] string = in.readRemainder();
      if (fHighByte.isSet(field_3_string_options)) {
        field_4_name = StringUtil.getFromUnicodeBE(string, 0, field_2_name_length);
      } else {
        field_4_name = StringUtil.getFromCompressedUnicode(string, 0, field_2_name_length);
      }
    }

    // todo sanity check exception to make sure we're one or the other
  }
Beispiel #3
0
 protected void fillFields(RecordInputStream in) {
   field_1_id = in.readShort();
   field_2_textLength = in.readByte();
   field_3_undocumented = in.readByte();
   field_4_text = in.readUnicodeLEString(field_2_textLength);
 }
 public AttrPtg(RecordInputStream in) {
   field_1_options = in.readByte();
   field_2_data = in.readShort();
 }