Package loci.poi.hssf.record.aggregates
Class ValueRecordsAggregate
- java.lang.Object
-
- loci.poi.hssf.record.Record
-
- loci.poi.hssf.record.aggregates.ValueRecordsAggregate
-
public class ValueRecordsAggregate extends Record
Aggregate value records together. Things are easier to handle that way.- Author:
- andy, Glen Stampoultzis (glens at apache.org), Jason Height (jheight at chariot dot net dot au)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classValueRecordsAggregate.MyIterator
-
Field Summary
Fields Modifier and Type Field Description static shortsid
-
Constructor Summary
Constructors Constructor Description ValueRecordsAggregate()Creates a new instance of ValueRecordsAggregate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Performs a deep clone of the recordintconstruct(int offset, java.util.List records)protected voidfillFields(RecordInputStream in)You never fill an aggregateintgetFirstCellNum()java.util.IteratorgetIterator()intgetLastCellNum()intgetPhysicalNumberOfCells()intgetRecordSize()gives the current serialized size of the record.intgetRowCellBlockSize(int startRow, int endRow)Tallies a count of the size of the cell records that are attached to the rows in the range specified.shortgetSid()return the non static version of the id for this record.voidinsertCell(CellValueRecordInterface cell)voidremoveCell(CellValueRecordInterface cell)booleanrowHasCells(int row)Returns true if the row has cells attached to itintserialize(int offset, byte[] data)called by the class that is responsible for writing this sucker.intserializeCellRow(int row, int offset, byte[] data)Serializes the cells that are allocated to a certain row rangeprotected voidvalidateSid(short id)called by constructor, should throw runtime exception in the event of a record passed with a differing ID.-
Methods inherited from class loci.poi.hssf.record.Record
isInValueSection, isValue, serialize, toString
-
-
-
-
Field Detail
-
sid
public static final short sid
- See Also:
- Constant Field Values
-
-
Method Detail
-
insertCell
public void insertCell(CellValueRecordInterface cell)
-
removeCell
public void removeCell(CellValueRecordInterface cell)
-
getPhysicalNumberOfCells
public int getPhysicalNumberOfCells()
-
getFirstCellNum
public int getFirstCellNum()
-
getLastCellNum
public int getLastCellNum()
-
construct
public int construct(int offset, java.util.List records)
-
serialize
public int serialize(int offset, byte[] data)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.
-
getRowCellBlockSize
public int getRowCellBlockSize(int startRow, int endRow)Tallies a count of the size of the cell records that are attached to the rows in the range specified.
-
rowHasCells
public boolean rowHasCells(int row)
Returns true if the row has cells attached to it
-
serializeCellRow
public int serializeCellRow(int row, int offset, byte[] data)Serializes the cells that are allocated to a certain row range
-
fillFields
protected void fillFields(RecordInputStream in)
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
public java.util.Iterator getIterator()
-
-