📄 numberrecord.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: NumberRecord.java
package jxl.read.biff;
import common.Logger;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import jxl.CellType;
import jxl.NumberCell;
import jxl.biff.DoubleHelper;
import jxl.biff.FormattingRecords;
// Referenced classes of package jxl.read.biff:
// CellValue, Record, SheetImpl
class NumberRecord extends CellValue
implements NumberCell
{
private static Logger logger;
private double value;
private NumberFormat format;
private static DecimalFormat defaultFormat = new DecimalFormat("#.###");
static Class class$jxl$read$biff$NumberRecord; /* synthetic field */
public NumberRecord(Record t, FormattingRecords fr, SheetImpl si)
{
super(t, fr, si);
byte data[] = getRecord().getData();
value = DoubleHelper.getIEEEDouble(data, 6);
format = fr.getNumberFormat(getXFIndex());
if(format == null)
format = defaultFormat;
}
public double getValue()
{
return value;
}
public String getContents()
{
return format.format(value);
}
public CellType getType()
{
return CellType.NUMBER;
}
public NumberFormat getNumberFormat()
{
return format;
}
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$NumberRecord != null ? class$jxl$read$biff$NumberRecord : (class$jxl$read$biff$NumberRecord = class$("jxl.read.biff.NumberRecord")));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -