FileDocCategorySizeDatePackage
SSTDeserializer.javaAPI DocApache Poi 3.0.12023Mon Jan 01 12:39:40 GMT 2007org.apache.poi.hssf.record

SSTDeserializer

public class SSTDeserializer extends Object
Handles the task of deserializing a SST string. The two main entry points are
author
Glen Stampoultzis (glens at apache.org)
author
Jason Height (jheight at apache.org)

Fields Summary
private IntMapper
strings
Constructors Summary
public SSTDeserializer(IntMapper strings)

        this.strings = strings;
    
Methods Summary
public static voidaddToStringTable(org.apache.poi.util.IntMapper strings, org.apache.poi.hssf.record.UnicodeString string)

      strings.add(string );
            
public voidmanufactureStrings(int stringCount, org.apache.poi.hssf.record.RecordInputStream in)
This is the starting point where strings are constructed. Note that strings may span across multiple continuations. Read the SST record carefully before beginning to hack.

      for (int i=0;i<stringCount;i++) {
        //Extract exactly the count of strings from the SST record.
        UnicodeString str = new UnicodeString(in);
        addToStringTable( strings, str );
        }