LabelSSTRecord lsrec = (LabelSSTRecord)record; thisRow = lsrec.getRow(); thisColumn = lsrec.getColumn(); if (sstRecord == null) { thisStr = ""; } else { thisStr = sstRecord.getString(lsrec.getSSTIndex()).toString();
LabelSSTRecord newrec = new LabelSSTRecord(); int stringid = workbook.addSSTString(new UnicodeString(oldrec.getValue())); newrec.setRow(oldrec.getRow()); newrec.setColumn(oldrec.getColumn()); newrec.setXFIndex(oldrec.getXFIndex()); newrec.setSSTIndex(stringid); records.add(k, newrec);
@Override public LabelSSTRecord clone() { LabelSSTRecord rec = new LabelSSTRecord(); copyBaseFields(rec); rec.field_4_sst_index = field_4_sst_index; return rec; } }
LabelSSTRecord lsrec = (LabelSSTRecord) record; if (sstRecord == null) { rowCellList.add(lsrec.getColumn(), StrUtil.EMPTY); } else { value = sstRecord.getString(lsrec.getSSTIndex()).toString(); rowCellList.add(lsrec.getColumn(), value);
@Override protected void appendValueText(StringBuilder sb) { sb.append(" .sstIndex = "); sb.append(HexDump.shortToHex(getSSTIndex())); } @Override
case LabelSSTRecord.sid: LabelSSTRecord lsrec = (LabelSSTRecord) record; thisRow = lsrec.getRow(); if(sstRecord == null) { throw new IllegalStateException("No SST record found"); thisText = sstRecord.getString(lsrec.getSSTIndex()).toString(); break; case NoteRecord.sid:
case IterationRecord.sid: return new IterationRecord(in); case LabelRecord.sid: return new LabelRecord(in); case LabelSSTRecord.sid: return new LabelSSTRecord(in); case LeftMarginRecord.sid: return new LeftMarginRecord(in); case LegendRecord.sid: return new LegendRecord(in);
@Override protected void serializeValue(LittleEndianOutput out) { out.writeInt(getSSTIndex()); }
if (this.sstrec != null) { LabelSSTRecord lrec = (LabelSSTRecord) record; int newRow = lrec.getRow(); if (this.row != newRow) { this.buffer.append('\n'); this.row = newRow; append(this.sstrec.getString(lrec.getSSTIndex()).getString());
LabelSSTRecord lsrec = (LabelSSTRecord) record; if (sstRecord == null) { rowCellList.add(lsrec.getColumn(), StrUtil.EMPTY); } else { value = sstRecord.getString(lsrec.getSSTIndex()).toString(); rowCellList.add(lsrec.getColumn(), value);
case IterationRecord.sid: return new IterationRecord(in); case LabelRecord.sid: return new LabelRecord(in); case LabelSSTRecord.sid: return new LabelSSTRecord(in); case LeftMarginRecord.sid: return new LeftMarginRecord(in); case LegendRecord.sid: return new LegendRecord(in);
if (lrec.getColumn()>=this.spreadSheetCellDAOCache.get(this.currentSheet-1).get(lrec.getRow()).length) { LOG.error("More cells in row than expected. Row number:"+(lrec.getRow())+"Column number: "+lrec.getColumn()+"row length "+this.spreadSheetCellDAOCache.get(this.currentSheet-1).get(lrec.getRow()).length); if ((lrec.getSSTIndex()<0) || (lrec.getSSTIndex()>=this.currentSSTrecord.getNumUniqueStrings())) { LOG.error("Invalid SST record index. Cell ignored"); } else { this.spreadSheetCellDAOCache.get(this.currentSheet-1).get(lrec.getRow())[lrec.getColumn()]=new SpreadSheetCellDAO(this.currentSSTrecord.getString(lrec.getSSTIndex()).getString(),"","",MSExcelUtil.getCellAddressA1Format(lrec.getRow(),lrec.getColumn()),this.sheetList.get(this.currentSheet-1));
HSSFRichTextString(InternalWorkbook book, LabelSSTRecord record) { setWorkbookReferences(book, record); _string = book.getSSTString(record.getSSTIndex()); }
case LabelSSTRecord.sid: LabelSSTRecord lsrec = (LabelSSTRecord) record; thisRow = lsrec.getRow(); if(sstRecord == null) { throw new IllegalStateException("No SST record found"); thisText = sstRecord.getString(lsrec.getSSTIndex()).toString(); break; case NoteRecord.sid:
lrec = (LabelSSTRecord) _record; } else { lrec = new LabelSSTRecord(); lrec.setColumn(col); lrec.setRow(row); lrec.setXFIndex(styleIndex); } else { int sstIndex = _book.getWorkbook().addSSTString(new UnicodeString(str)); lrec.setSSTIndex(sstIndex); UnicodeString us = _book.getWorkbook().getSSTString(sstIndex); _stringValue = new HSSFRichTextString();
Log.warn(Sys.EXCEL,"[ExcelParser] Missing SST record"); } else { curCol = lsrec.getColumn(); curStr = _str.setTo(_sstRecord.getString(lsrec.getSSTIndex()).toString());
public Object clone() { LabelSSTRecord rec = new LabelSSTRecord(); copyBaseFields(rec); rec.field_4_sst_index = field_4_sst_index; return rec; } }
case IterationRecord.sid: return new IterationRecord(in); case LabelRecord.sid: return new LabelRecord(in); case LabelSSTRecord.sid: return new LabelSSTRecord(in); case LeftMarginRecord.sid: return new LeftMarginRecord(in); case LegendRecord.sid: return new LegendRecord(in);
case LabelSSTRecord.sid: // 单元格为字符串类型 LabelSSTRecord lsrec = (LabelSSTRecord) record; curRow = thisRow = lsrec.getRow(); thisColumn = lsrec.getColumn(); if (sstRecord == null) { rowlist.add(thisColumn, " "); } else { value = sstRecord.getString(lsrec.getSSTIndex()).toString().trim(); value = value.equals("") ? " " : value; rowlist.add(thisColumn, value);
return (( BoolErrRecord ) _record).getBooleanValue(); case STRING: int sstIndex = ((LabelSSTRecord)_record).getSSTIndex(); String text = _book.getWorkbook().getSSTString(sstIndex).getString(); return Boolean.valueOf(text).booleanValue();