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

ExtSSTInfoSubRecord

public class ExtSSTInfoSubRecord extends Record
Extended SST table info subrecord

contains the elements of "info" in the SST's array field

author
Andrew C. Oliver (acoliver at apache dot org)
version
2.0-pre
see
org.apache.poi.hssf.record.ExtSSTRecord

Fields Summary
public static final int
INFO_SIZE
public static final short
sid
private int
field_1_stream_pos
private short
field_2_bucket_sst_offset
private short
field_3_zero
Constructors Summary
public ExtSSTInfoSubRecord()
Creates new ExtSSTInfoSubRecord

                // must be 0;

        

     
    
    
public ExtSSTInfoSubRecord(RecordInputStream in)

        super(in);
    
Methods Summary
protected voidfillFields(org.apache.poi.hssf.record.RecordInputStream in)

        field_1_stream_pos        = in.readInt();
        field_2_bucket_sst_offset = in.readShort();
        field_3_zero              = in.readShort();
    
public shortgetBucketSSTOffset()

        return field_2_bucket_sst_offset;
    
public intgetRecordSize()

        return 8;
    
public shortgetSid()

        return sid;
    
public intgetStreamPos()

        return field_1_stream_pos;
    
public intserialize(int offset, byte[] data)

        LittleEndian.putInt(data, 0 + offset, getStreamPos());
        LittleEndian.putShort(data, 4 + offset, getBucketSSTOffset());
        LittleEndian.putShort(data, 6 + offset, ( short ) 0);
        return getRecordSize();
    
public voidsetBucketRecordOffset(short offset)

        field_2_bucket_sst_offset = offset;
    
public voidsetStreamPos(int pos)

        field_1_stream_pos = pos;
    
public java.lang.StringtoString()

        StringBuffer buffer = new StringBuffer();

        buffer.append("[EXTSST]\n");
        buffer.append("    .streampos      = ")
            .append(Integer.toHexString(getStreamPos())).append("\n");
        buffer.append("    .bucketsstoffset= ")
            .append(Integer.toHexString(getBucketSSTOffset())).append("\n");
        buffer.append("    .zero           = ")
            .append(Integer.toHexString(field_3_zero)).append("\n");
        buffer.append("[/EXTSST]\n");
        return buffer.toString();
    
protected voidvalidateSid(short id)


        // do nothing