Package loci.poi.hssf.record.aggregates
Class RowRecordsAggregate
java.lang.Object
loci.poi.hssf.record.Record
loci.poi.hssf.record.aggregates.RowRecordsAggregate
- Author:
- andy, Jason Height (jheight at chariot dot net dot au)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Performs a deep clone of the recordvoidcollapseRow(int rowNumber) static RowRecordcreateRow(int row) Create a row record.voidexpandRow(int rowNumber) protected voidYou never fill an aggregateintfindEndOfRowOutlineGroup(int row) intfindStartOfRowOutlineGroup(int row) intgetEndRowNumberForBlock(int block) Returns the physical row number of the end row in a blockintintintintgives the current serialized size of the record.getRow(int rownum) intReturns the number of row blocks.intgetRowBlockSize(int block) intgetRowCountForBlock(int block) Returns the number of physical rows within a blockshortgetSid()return the non static version of the id for this record.intgetStartRowNumberForBlock(int block) Returns the physical row number of the first row in a blockvoidbooleanisRowGroupCollapsed(int row) booleanisRowGroupHiddenByParent(int row) voidintserialize(int offset, byte[] data) called by the class that is responsible for writing this sucker.intserialize(int offset, byte[] data, ValueRecordsAggregate cells) called by the class that is responsible for writing this sucker.protected voidvalidateSid(short id) called by constructor, should throw runtime exception in the event of a record passed with a differing ID.intwriteHidden(RowRecord rowRecord, int row, boolean hidden) Methods inherited from class loci.poi.hssf.record.Record
isInValueSection, isValue, serialize, toString
-
Constructor Details
-
RowRecordsAggregate
public RowRecordsAggregate()Creates a new instance of ValueRecordsAggregate
-
-
Method Details
-
insertRow
-
removeRow
-
getRow
-
getPhysicalNumberOfRows
public int getPhysicalNumberOfRows() -
getFirstRowNum
public int getFirstRowNum() -
getLastRowNum
public int getLastRowNum() -
getRowBlockCount
public int getRowBlockCount()Returns the number of row blocks. The row blocks are goupings of rows that contain the DBCell record after them -
getRowBlockSize
public int getRowBlockSize(int block) -
getRowCountForBlock
public int getRowCountForBlock(int block) Returns the number of physical rows within a block -
getStartRowNumberForBlock
public int getStartRowNumberForBlock(int block) Returns the physical row number of the first row in a block -
getEndRowNumberForBlock
public int getEndRowNumberForBlock(int block) Returns the physical row number of the end row in a block -
serialize
public int serialize(int offset, byte[] data) Description copied from class:Recordcalled by the class that is responsible for writing this sucker. Subclasses should implement this so that their data is passed back in a byte array. -
serialize
called by the class that is responsible for writing this sucker. Subclasses should implement this so that their data is passed back in a byte array.- Parameters:
offset- offset to begin writing atdata- byte array containing instance data- Returns:
- number of bytes written
-
fillFields
You never fill an aggregate- Specified by:
fillFieldsin classRecord- Parameters:
in- the RecordInputstream to read the record from
-
validateSid
protected void validateSid(short id) called by constructor, should throw runtime exception in the event of a record passed with a differing ID.- Specified by:
validateSidin classRecord- Parameters:
id- alleged id for this record
-
getSid
public short getSid()return the non static version of the id for this record. -
getRecordSize
public int getRecordSize()Description copied from class:Recordgives the current serialized size of the record. Should include the sid and reclength (4 bytes).- Overrides:
getRecordSizein classRecord
-
getIterator
-
clone
Performs a deep clone of the record -
findStartOfRowOutlineGroup
public int findStartOfRowOutlineGroup(int row) -
findEndOfRowOutlineGroup
public int findEndOfRowOutlineGroup(int row) -
writeHidden
-
collapseRow
public void collapseRow(int rowNumber) -
createRow
Create a row record.- Parameters:
row- number- Returns:
- RowRecord created for the passed in row number
- See Also:
-
isRowGroupCollapsed
public boolean isRowGroupCollapsed(int row) -
expandRow
public void expandRow(int rowNumber) -
isRowGroupHiddenByParent
public boolean isRowGroupHiddenByParent(int row)
-