⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readstringformularecord.java

📁 主要介绍snmp编程的一些例子对于snmp编程的人非常重要
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ReadStringFormulaRecord.java

package jxl.write.biff;

import common.Assert;
import common.Logger;
import jxl.StringFormulaCell;
import jxl.biff.FormulaData;
import jxl.biff.IntegerHelper;
import jxl.biff.formula.FormulaException;
import jxl.biff.formula.FormulaParser;

// Referenced classes of package jxl.write.biff:
//            ReadFormulaRecord, WritableSheetImpl, WritableWorkbookImpl

class ReadStringFormulaRecord extends ReadFormulaRecord
    implements StringFormulaCell
{

    private static Logger logger;
    static Class class$jxl$write$biff$ReadFormulaRecord; /* synthetic field */

    public ReadStringFormulaRecord(FormulaData f)
    {
        super(f);
    }

    public String getString()
    {
        return ((StringFormulaCell)getReadFormula()).getString();
    }

    protected byte[] handleFormulaException()
    {
        byte expressiondata[] = null;
        byte celldata[] = super.getCellData();
        WritableWorkbookImpl w = getSheet().getWorkbook();
        FormulaParser parser = new FormulaParser("\"" + getContents() + "\"", w, w, w.getSettings());
        try
        {
            parser.parse();
        }
        catch(FormulaException e2)
        {
            logger.warn(e2.getMessage());
            parser = new FormulaParser("\"ERROR\"", w, w, w.getSettings());
            try
            {
                parser.parse();
            }
            catch(FormulaException e3)
            {
                Assert.verify(false);
            }
        }
        byte formulaBytes[] = parser.getBytes();
        expressiondata = new byte[formulaBytes.length + 16];
        IntegerHelper.getTwoBytes(formulaBytes.length, expressiondata, 14);
        System.arraycopy(formulaBytes, 0, expressiondata, 16, formulaBytes.length);
        expressiondata[8] |= 0x2;
        byte data[] = new byte[celldata.length + expressiondata.length];
        System.arraycopy(celldata, 0, data, 0, celldata.length);
        System.arraycopy(expressiondata, 0, data, celldata.length, expressiondata.length);
        data[6] = 0;
        data[12] = -1;
        data[13] = -1;
        return data;
    }

    static Class class$(String x0)
    {
        return Class.forName(x0);
        ClassNotFoundException x1;
        x1;
        throw new NoClassDefFoundError(x1.getMessage());
    }

    static 
    {
        logger = Logger.getLogger(class$jxl$write$biff$ReadFormulaRecord != null ? class$jxl$write$biff$ReadFormulaRecord : (class$jxl$write$biff$ReadFormulaRecord = class$("jxl.write.biff.ReadFormulaRecord")));
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -