@Internal public class OoxmlReader extends XSSFReader
| Modifier and Type | Class and Description |
|---|---|
static class |
OoxmlReader.SheetData |
XSSFReader.SheetIterator, XSSFReader.XMLSheetRefReader, XSSFReader.XSSFSheetRefpkg, useReadOnlySharedStringsTable, workbookPart| Constructor and Description |
|---|
OoxmlReader(StreamingReader.Builder builder,
OPCPackage pkg,
boolean strictOoxmlChecksNeeded)
Creates a new XSSFReader, for the given package
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfSheets() |
SharedStrings |
getSharedStrings(StreamingReader.Builder builder)
Opens up the Shared Strings Table, parses it, and
returns a handy object for working with
shared strings.
|
SharedStringsTable |
getSharedStringsTable()
Opens up the Shared Strings Table, parses it, and
returns a handy object for working with
shared strings.
|
OoxmlReader.SheetData |
getSheetDataAt(int idx) |
int |
getSheetIndex(String name) |
StylesTable |
getStylesTable()
Opens up the Styles Table, parses it, and
returns a handy object for working with cell styles.
|
getSharedStringsData, getSheet, getSheetIterator, getSheetsData, getStylesData, getThemesData, getWorkbookData, setUseReadOnlySharedStringsTable, useReadOnlySharedStringsTable@Internal public OoxmlReader(StreamingReader.Builder builder, OPCPackage pkg, boolean strictOoxmlChecksNeeded) throws IOException, OpenXML4JException, POIXMLException
builder - the builder to usepkg - The package this poi filesystem reader will usestrictOoxmlChecksNeeded - whether to perform strict OOXML checksIOException - if an error occurs while reading the packageOpenXML4JException - if an error occurs while parsing the packagePOIXMLException - if the package is invalidpublic SharedStringsTable getSharedStringsTable() throws IOException
getSharedStringsTable in class XSSFReaderIOException - if an error occurs while reading the shared stringspublic SharedStrings getSharedStrings(StreamingReader.Builder builder) throws IOException, SAXException
builder - the builder to useIOException - if an error occurs while reading the shared stringsSAXException - if an error occurs while parsing the shared stringspublic StylesTable getStylesTable() throws IOException, InvalidFormatException
getStylesTable in class XSSFReaderIOException - if an error occurs while reading the styles.InvalidFormatExceptionpublic int getSheetIndex(String name) throws MissingSheetException
MissingSheetExceptionpublic OoxmlReader.SheetData getSheetDataAt(int idx) throws MissingSheetException
MissingSheetExceptionpublic int getNumberOfSheets()