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

IntPtg

public class IntPtg extends Ptg
Integer (short intger) Stores a (java) short value in a formula
author
Andrew C. Oliver (acoliver at apache dot org)
author
Jason Height (jheight at chariot dot net dot au)

Fields Summary
public static final int
SIZE
public static final byte
sid
private short
field_1_value
Constructors Summary
private IntPtg()

  
      
      //Required for clone methods
    
public IntPtg(RecordInputStream in)

        setValue(in.readShort());
    
public IntPtg(String formulaToken)

        setValue(Short.parseShort(formulaToken));
    
Methods Summary
public java.lang.Objectclone()

     IntPtg ptg = new IntPtg();
     ptg.field_1_value = field_1_value;
     return ptg;
   
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public intgetSize()

        return SIZE;
    
public shortgetValue()

        return field_1_value;
    
public voidsetValue(short value)

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

        return "" + getValue();
    
public voidwriteBytes(byte[] array, int offset)

        array[ offset + 0 ] = sid;
        LittleEndian.putShort(array, offset + 1, getValue());