jxl.write.biff
Class ExtendedSSTRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.ExtendedSSTRecord
All Implemented Interfaces:
ByteData

class ExtendedSSTRecord
extends WritableRecordData

Indicates an extension to the Shared String Table. Currently this contains blank records Thanks to Guenther for contributing a proper implementation of the EXTSST record, replacing my previous dummy version


Field Summary
private  int[] absoluteStreamPositions
           
private  int currentStringIndex
           
private static int infoRecordSize
           
private  int numberOfStrings
           
private  int[] relativeStreamPositions
           
 
Fields inherited from class jxl.biff.WritableRecordData
maxRecordLength
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
ExtendedSSTRecord(int newNumberOfStrings)
          Constructor
 
Method Summary
 void addString(int absoluteStreamPosition, int relativeStreamPosition)
           
 byte[] getData()
          Gets the binary data to be written out
 int getNumberOfBuckets()
           
 int getNumberOfStringsPerBucket()
           
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes, handleContinueRecords
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

infoRecordSize

private static final int infoRecordSize

numberOfStrings

private int numberOfStrings

absoluteStreamPositions

private int[] absoluteStreamPositions

relativeStreamPositions

private int[] relativeStreamPositions

currentStringIndex

private int currentStringIndex
Constructor Detail

ExtendedSSTRecord

public ExtendedSSTRecord(int newNumberOfStrings)
Constructor
Parameters:
numstrings - the number of strings per bucket
streampos - the absolute stream position of the beginning of the SST record
Method Detail

getNumberOfBuckets

public int getNumberOfBuckets()

getNumberOfStringsPerBucket

public int getNumberOfStringsPerBucket()

addString

public void addString(int absoluteStreamPosition,
                      int relativeStreamPosition)

getData

public byte[] getData()
Gets the binary data to be written out
Overrides:
getData in class WritableRecordData
Returns:
the binary data