FileDocCategorySizeDatePackage
MemAreaPtg.javaAPI DocApache Poi 3.0.12738Mon Jan 01 12:39:40 GMT 2007org.apache.poi.hssf.record.formula

MemAreaPtg

public class MemAreaPtg extends Ptg
author
Daniel Noll (daniel at nuix dot com dot au)

Fields Summary
public static final short
sid
private static final int
SIZE
private int
field_1_reserved
private short
field_2_subex_len
Constructors Summary
public MemAreaPtg()
Creates new MemAreaPtg


        

     
    
    
public MemAreaPtg(RecordInputStream in)

        field_1_reserved  = in.readInt();
        field_2_subex_len = in.readShort();
    
Methods Summary
public java.lang.Objectclone()

      MemAreaPtg ptg = new MemAreaPtg();
      ptg.field_1_reserved = field_1_reserved;
      ptg.field_2_subex_len = field_2_subex_len;
      return ptg;
    
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public intgetReserved()

        return field_1_reserved;
    
public intgetSize()

        return SIZE;
    
public shortgetSubexpressionLength()

        return field_2_subex_len;
    
public voidsetReserved(int res)

        field_1_reserved = res;
    
public voidsetSubexpressionLength(short subexlen)

        field_2_subex_len = subexlen;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)

        return ""; // TODO: Not sure how to format this. -- DN
    
public voidwriteBytes(byte[] array, int offset)

        array[offset] = (byte) (sid + ptgClass);
        LittleEndian.putInt(array, offset + 1, field_1_reserved);
        LittleEndian.putShort(array, offset + 5, field_2_subex_len);