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

📄 externalnamerecord.java

📁 jxtl API Java中Excel的生成与导入解析参考文档
💻 JAVA
字号:
/***********************************************************************      Copyright (C) 2001 Andrew Khan** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or (at your option) any later version.** This library is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU* Lesser General Public License for more details.** You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA***************************************************************************/package jxl.read.biff;import common.Logger;import jxl.WorkbookSettings;import jxl.biff.IntegerHelper;import jxl.biff.RecordData;import jxl.biff.StringHelper;/** * A row  record */public class ExternalNameRecord extends RecordData{  /**   * The logger   */  private static Logger logger = Logger.getLogger(ExternalNameRecord.class);  /**   * The name   */  private String name;  /**   * Add in function flag   */  private boolean addInFunction;  /**   * Constructs this object from the raw data   *   * @param t the raw data   * @param ws the workbook settings   */  ExternalNameRecord(Record t, WorkbookSettings ws)  {    super(t);    byte[] data = getRecord().getData();    int options = IntegerHelper.getInt(data[0], data[1]);        if (options == 0)    {      addInFunction = true;    }    if (!addInFunction)    {      return;    }    int length = data[6];    boolean unicode = (data[7] != 0);    if (unicode)    {      name = StringHelper.getUnicodeString(data, length, 8);    }    else    {       name = StringHelper.getString(data, length, 8, ws);    }  }  /**   * Queries whether this name record refers to an external record   *   * @return TRUE if this name record is an add in function, FALSE otherwise   */  public boolean isAddInFunction()  {    return addInFunction;  }  /**   * Gets the name   *   * @return the name   */  public String getName()  {    return name;  }}

⌨️ 快捷键说明

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