FileDocCategorySizeDatePackage
SubRecord.javaAPI DocApache Poi 3.0.12323Mon Jan 01 18:59:10 GMT 2007org.apache.poi.hssf.record

SubRecord

public abstract class SubRecord extends Record
Subrecords are part of the OBJ class.

Fields Summary
Constructors Summary
public SubRecord()

    
public SubRecord(RecordInputStream in)

        super( in );
    
Methods Summary
public static org.apache.poi.hssf.record.RecordcreateSubRecord(org.apache.poi.hssf.record.RecordInputStream in)

        Record r = null;

        /* This must surely be an earlier hack?? Delete when confident
        short adjustedSize = size;
        if ( size < 0 )
        {
            adjustedSize = 0;
        }
        else if ( offset + size > data.length )
        {
            adjustedSize = (short) ( data.length - offset );
            if ( adjustedSize > 4 )
            {
                adjustedSize -= 4;
            }
        }
*/
        switch ( in.getSid() )
        {
            case CommonObjectDataSubRecord.sid:
                r = new CommonObjectDataSubRecord( in );
                break;
            case GroupMarkerSubRecord.sid:
                r = new GroupMarkerSubRecord( in );
                break;
            case EndSubRecord.sid:
                r = new EndSubRecord( in );
                break;
            case NoteStructureSubRecord.sid:
                r = new NoteStructureSubRecord( in );
                break;
            default:
                r = new UnknownRecord( in );
        }
        return r;