@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.java.io.IOException
- If reading the data from the package fails.org.xml.sax.SAXException
- if parsing the XML data fails.public RichTextString getItemAt(int idx)
SharedStrings
getItemAt
in interface SharedStrings
idx
- index of item to return.public int getCount()
getCount
in interface SharedStrings
public int getUniqueCount()
getUniqueCount
in interface SharedStrings
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.