📄 externalsheetrecord.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: ExternalSheetRecord.java
package jxl.read.biff;
import common.Logger;
import jxl.WorkbookSettings;
import jxl.biff.IntegerHelper;
import jxl.biff.RecordData;
// Referenced classes of package jxl.read.biff:
// Record
public class ExternalSheetRecord extends RecordData
{
private static class XTI
{
int supbookIndex;
int firstTab;
int lastTab;
XTI(int s, int f, int l)
{
supbookIndex = s;
firstTab = f;
lastTab = l;
}
}
private static class Biff7
{
private Biff7()
{
}
Biff7(_cls1 x0)
{
this();
}
}
private static Logger logger;
public static Biff7 biff7 = new Biff7(null);
private XTI xtiArray[];
static Class class$jxl$read$biff$ExternalSheetRecord; /* synthetic field */
ExternalSheetRecord(Record t, WorkbookSettings ws)
{
super(t);
byte data[] = getRecord().getData();
int numxtis = IntegerHelper.getInt(data[0], data[1]);
if(data.length < numxtis * 6 + 2)
{
xtiArray = new XTI[0];
logger.warn("Could not process external sheets. Formulas may be compromised.");
return;
}
xtiArray = new XTI[numxtis];
int pos = 2;
for(int i = 0; i < numxtis; i++)
{
int s = IntegerHelper.getInt(data[pos], data[pos + 1]);
int f = IntegerHelper.getInt(data[pos + 2], data[pos + 3]);
int l = IntegerHelper.getInt(data[pos + 4], data[pos + 5]);
xtiArray[i] = new XTI(s, f, l);
pos += 6;
}
}
ExternalSheetRecord(Record t, WorkbookSettings settings, Biff7 dummy)
{
super(t);
logger.warn("External sheet record for Biff 7 not supported");
}
public int getNumRecords()
{
return xtiArray == null ? 0 : xtiArray.length;
}
public int getSupbookIndex(int index)
{
return xtiArray[index].supbookIndex;
}
public int getFirstTabIndex(int index)
{
return xtiArray[index].firstTab;
}
public int getLastTabIndex(int index)
{
return xtiArray[index].lastTab;
}
public byte[] getData()
{
return getRecord().getData();
}
static Class class$(String x0)
{
return Class.forName(x0);
ClassNotFoundException x1;
x1;
throw new NoClassDefFoundError(x1.getMessage());
}
static
{
logger = Logger.getLogger(class$jxl$read$biff$ExternalSheetRecord != null ? class$jxl$read$biff$ExternalSheetRecord : (class$jxl$read$biff$ExternalSheetRecord = class$("jxl.read.biff.ExternalSheetRecord")));
}
// Unreferenced inner classes:
/* anonymous class */
static class _cls1
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -