本文整理汇总了Java中org.apache.poi.hssf.record.BoundSheetRecord类的典型用法代码示例。如果您正苦于以下问题:Java BoundSheetRecord类的具体用法?Java BoundSheetRecord怎么用?Java BoundSheetRecord使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BoundSheetRecord类属于org.apache.poi.hssf.record包,在下文中一共展示了BoundSheetRecord类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: recordFound
import org.apache.poi.hssf.record.BoundSheetRecord; //导入依赖的package包/类
@Override
protected void recordFound(Record record) {
switch(record.getSid()) {
case BoundSheetRecord.sid:
sheets.add(((BoundSheetRecord)record).getSheetname());
break;
case NameRecord.sid:
NameRecord nr = (NameRecord) record;
if(isUserDefinedName(nr)) {
String name = nr.getNameText();
String formula = toFormulaString(nr.getNameDefinition());
if(formula != null) {
formula = formula.replaceAll(RELACE_WB_NAME, "");
names.put(name, formula);
}
}
default:
break;
}
}
示例2: recordFound
import org.apache.poi.hssf.record.BoundSheetRecord; //导入依赖的package包/类
@Override
protected void recordFound(Record record) throws Exception {
if(tableEnded)
return;
switch(record.getSid()) {
case BoundSheetRecord.sid:
boundRecord((BoundSheetRecord) record);
break;
case BOFRecord.sid:
bofRecord((BOFRecord)record);
break;
case SSTRecord.sid:
sstRecord = (SSTRecord) record;
break;
case BoolErrRecord.sid:
cellRecord((CellRecord)record);
break;
case FormulaRecord.sid:
cellRecord((CellRecord)record);
break;
case LabelSSTRecord.sid:
cellRecord((CellRecord)record);
break;
case LabelRecord.sid:
LabelRecord lr = (LabelRecord) record;
cellRecord(lr.getRow(), lr.getColumn(), lr);
break;
case StringRecord.sid:
if(outputNextString) {
cellRecord(prevRow, prevColumn, record);
outputNextString = false;
}
break;
case NumberRecord.sid:
cellRecord((CellRecord)record);
break;
default:
break;
}
}
示例3: boundRecord
import org.apache.poi.hssf.record.BoundSheetRecord; //导入依赖的package包/类
private void boundRecord(BoundSheetRecord record) {
sheets.add(record.getSheetname());
}