Top Description Fields Constructors Methods
org.apache.poi.hssf.model

public final Class RowBlocksReader

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.apache.poi.hssf.record.ArrayRecord, .FormulaRecord, .MergeCellsRecord, .Record, .SharedFormulaRecord, .TableRecord, org.apache.poi.hssf.record.aggregates.MergedCellsTable, .SharedValueManager, org.apache.poi.ss.util.CellReference

Segregates the 'Row Blocks' section of a single sheet into plain row/cell records and shared formula records.

Field Summary

Modifier and TypeField and Description
private final MergeCellsRecord[]
private final List<Record>
private final SharedValueManager

Constructor Summary

AccessConstructor and Description
public
RowBlocksReader(RecordStream
the record stream
rs
)

Also collects any loose MergeCellRecords and puts them in the supplied mergedCellsTable

Method Summary

Modifier and TypeMethod and Description
public MergeCellsRecord[]

Returns:

any loose MergeCellsRecords found
getLooseMergedCells
()

Some unconventional apps place MergeCellsRecords within the row block.

public RecordStream

Returns:

a RecordStream containing all the non-SharedFormulaRecord non-ArrayRecord and non-TableRecord Records.
getPlainRecordStream
()

public SharedValueManager
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_mergedCellsRecordsback to summary
private final MergeCellsRecord[] _mergedCellsRecords
_plainRecordsback to summary
private final List<Record> _plainRecords
_sfmback to summary
private final SharedValueManager _sfm

Constructor Detail

RowBlocksReaderback to summary
public RowBlocksReader(RecordStream rs)

Also collects any loose MergeCellRecords and puts them in the supplied mergedCellsTable

Parameters
rs:RecordStream

the record stream

Method Detail

getLooseMergedCellsback to summary
public MergeCellsRecord[] getLooseMergedCells()

Some unconventional apps place MergeCellsRecords within the row block. They actually should be in the MergedCellsTable which is much later (see bug 45699).

Returns:MergeCellsRecord[]

any loose MergeCellsRecords found

getPlainRecordStreamback to summary
public RecordStream getPlainRecordStream()
Returns:RecordStream

a RecordStream containing all the non-SharedFormulaRecord non-ArrayRecord and non-TableRecord Records.

getSharedFormulaManagerback to summary
public SharedValueManager getSharedFormulaManager()