@Internal public class XSSFBSharedStringsTable extends java.lang.Object implements SharedStrings
Constructor and Description |
---|
XSSFBSharedStringsTable(OPCPackage pkg) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Return an integer representing the total count of strings in the workbook.
(返回一个整数,表示工作簿中的字符串总数。)
|
RichTextString |
getItemAt(int idx)
Return a string item by index
(按索引返回字符串项)
|
int |
getUniqueCount()
Returns an integer representing the total count of unique strings in the Shared String Table.
(返回一个整数,表示共享字符串表中唯一字符串的总数。)
|
public XSSFBSharedStringsTable(OPCPackage pkg) throws java.io.IOException, org.xml.sax.SAXException
pkg
- The
OPCPackage
to use as basis for the shared-strings table.
(pkg - 用作共享字符串表基础的 OPCPackage。)
java.io.IOException
- If reading the data from the package fails.
(java.io.IOException - 如果从包中读取数据失败。)
org.xml.sax.SAXException
- if parsing the XML data fails.
(org.xml.sax.SAXException - 如果解析 XML 数据失败。)
public RichTextString getItemAt(int idx)
SharedStrings
getItemAt
in interface
SharedStrings
(接口 SharedStrings 中的 getItemAt)
idx
- index of item to return.
(idx - 要返回的项目的索引。)
public int getCount()
getCount
in interface
SharedStrings
(接口 SharedStrings 中的 getCount)
public int getUniqueCount()
getUniqueCount
in interface
SharedStrings
(接口 SharedStrings 中的 getUniqueCount)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.