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

PercentPtg

public class PercentPtg extends OperationPtg
Percent PTG.
author
Daniel Noll (daniel at nuix.com.au)

Fields Summary
public static final int
SIZE
public static final byte
sid
private static final String
PERCENT
Constructors Summary
public PercentPtg()
Creates new PercentPtg


        

     
    
    
public PercentPtg(RecordInputStream in)


        // doesn't need anything
    
Methods Summary
public java.lang.Objectclone()

      return new PercentPtg();
    
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public intgetNumberOfOperands()

        return 1;
    
public intgetSize()

        return SIZE;
    
public intgetType()

        return TYPE_UNARY;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)
Implementation of method from Ptg

        return "%";
    
public java.lang.StringtoFormulaString(java.lang.String[] operands)
implementation of method from OperationsPtg

        StringBuffer buffer = new StringBuffer();

        buffer.append(operands[ 0 ]);
        buffer.append(PERCENT);
        return buffer.toString();
    
public voidwriteBytes(byte[] array, int offset)

        array[ offset + 0 ] = sid;