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

📄 boundsheetrecord.java

📁 实现JAVA界面的代码GWT
💻 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:   BoundsheetRecord.java

package jxl.read.biff;

import java.io.UnsupportedEncodingException;
import jxl.biff.IntegerHelper;
import jxl.biff.RecordData;

// Referenced classes of package jxl.read.biff:
//            Record

class BoundsheetRecord extends RecordData
{
    private static class Biff7
    {

        private Biff7()
        {
        }

        Biff7(_cls1 x0)
        {
            this();
        }
    }


    private int offset;
    private byte typeFlag;
    private byte visibilityFlag;
    private int length;
    private String name;
    public static Biff7 biff7 = new Biff7(null);

    public BoundsheetRecord(Record t)
    {
        super(t);
        byte data[] = getRecord().getData();
        offset = IntegerHelper.getInt(data[0], data[1], data[2], data[3]);
        typeFlag = data[5];
        visibilityFlag = data[4];
        length = data[6];
        if(data[7] == 0)
        {
            byte bytes[] = new byte[length];
            System.arraycopy(data, 8, bytes, 0, length);
            name = new String(bytes);
        } else
        {
            byte bytes[] = new byte[length * 2];
            System.arraycopy(data, 8, bytes, 0, length * 2);
            try
            {
                name = new String(bytes, "UnicodeLittle");
            }
            catch(UnsupportedEncodingException e)
            {
                name = "Error";
            }
        }
    }

    public BoundsheetRecord(Record t, Biff7 biff7)
    {
        super(t);
        byte data[] = getRecord().getData();
        offset = IntegerHelper.getInt(data[0], data[1], data[2], data[3]);
        typeFlag = data[5];
        visibilityFlag = data[4];
        length = data[6];
        byte bytes[] = new byte[length];
        System.arraycopy(data, 7, bytes, 0, length);
        name = new String(bytes);
    }

    public String getName()
    {
        return name;
    }

    public boolean isHidden()
    {
        return visibilityFlag != 0;
    }

    public boolean isSheet()
    {
        return typeFlag == 0;
    }

    public boolean isChart()
    {
        return typeFlag == 2;
    }


// Unreferenced inner classes:

/* anonymous class */
    static class _cls1
    {
    }

}

⌨️ 快捷键说明

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