Class RecordAggregate.PositionTrackingVisitor
- java.lang.Object
-
- org.apache.poi.hssf.record.aggregates.RecordAggregate.PositionTrackingVisitor
-
- All Implemented Interfaces:
RecordAggregate.RecordVisitor
- Enclosing class:
- RecordAggregate
public static final class RecordAggregate.PositionTrackingVisitor extends java.lang.Object implements RecordAggregate.RecordVisitor
A wrapper forRecordAggregate.RecordVisitor
which accumulates the sizes of all records visited.
-
-
Constructor Summary
Constructors Constructor Description PositionTrackingVisitor(RecordAggregate.RecordVisitor rv, int initialPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPosition()
void
setPosition(int position)
void
visitRecord(Record r)
Implementors may call non-mutating methods on Record r.
-
-
-
Constructor Detail
-
PositionTrackingVisitor
public PositionTrackingVisitor(RecordAggregate.RecordVisitor rv, int initialPosition)
-
-
Method Detail
-
visitRecord
public void visitRecord(Record r)
Description copied from interface:RecordAggregate.RecordVisitor
Implementors may call non-mutating methods on Record r.- Specified by:
visitRecord
in interfaceRecordAggregate.RecordVisitor
- Parameters:
r
- must not benull
-
setPosition
public void setPosition(int position)
-
getPosition
public int getPosition()
-
-