@Internal public class OoxmlReader extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OoxmlReader.SheetIterator
Iterator over sheet data.
|
protected static class |
OoxmlReader.XSSFSheetRef |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.poi.openxml4j.opc.OPCPackage |
pkg |
protected org.apache.poi.openxml4j.opc.PackagePart |
workbookPart |
| Constructor and Description |
|---|
OoxmlReader(org.apache.poi.openxml4j.opc.OPCPackage pkg)
Creates a new XSSFReader, for the given package
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getSharedStringsData()
Returns an InputStream to read the contents of the
shared strings table.
|
org.apache.poi.xssf.model.SharedStringsTable |
getSharedStringsTable()
Opens up the Shared Strings Table, parses it, and
returns a handy object for working with
shared strings.
|
InputStream |
getSheet(String relId)
Returns an InputStream to read the contents of the
specified Sheet.
|
OoxmlReader.SheetIterator |
getSheetsData()
Returns an Iterator which will let you get at all the
different Sheets in turn.
|
InputStream |
getStylesData()
Returns an InputStream to read the contents of the
styles table.
|
org.apache.poi.xssf.model.StylesTable |
getStylesTable()
Opens up the Styles Table, parses it, and
returns a handy object for working with cell styles
|
InputStream |
getThemesData()
Returns an InputStream to read the contents of the
themes table.
|
InputStream |
getWorkbookData()
Returns an InputStream to read the contents of the
main Workbook, which contains key overall data for
the file, including sheet definitions.
|
protected org.apache.poi.openxml4j.opc.OPCPackage pkg
protected org.apache.poi.openxml4j.opc.PackagePart workbookPart
public OoxmlReader(org.apache.poi.openxml4j.opc.OPCPackage pkg)
throws IOException,
org.apache.poi.openxml4j.exceptions.OpenXML4JException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionpublic org.apache.poi.xssf.model.SharedStringsTable getSharedStringsTable()
throws IOException,
org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic org.apache.poi.xssf.model.StylesTable getStylesTable()
throws IOException,
org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic InputStream getSharedStringsData() throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic InputStream getStylesData() throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic InputStream getThemesData() throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic InputStream getWorkbookData() throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException
IOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic InputStream getSheet(String relId) throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException
relId - The relationId of the sheet, from a r:id on the workbookIOExceptionorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptionpublic OoxmlReader.SheetIterator getSheetsData() throws IOException
IOExceptionCopyright © 2021. All rights reserved.