public class XSSFReader extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XSSFReader.SheetIterator
Iterator over sheet data.
|
| Constructor and Description |
|---|
XSSFReader(OPCPackage pkg)
Creates a new XSSFReader, for the given package
|
| Modifier and Type | Method and Description |
|---|---|
PackagePart |
getExternalLink(String relId)
Returns an ExternalLinkPart with the specified relationId.
|
InputStream |
getSharedStringsData()
Returns an InputStream to read the contents of the
shared strings table.
|
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.
|
Iterator<InputStream> |
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.
|
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.
|
public XSSFReader(OPCPackage pkg) throws IOException, OpenXML4JException
IOExceptionOpenXML4JExceptionpublic SharedStringsTable getSharedStringsTable() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic StylesTable getStylesTable() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic InputStream getSharedStringsData() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic InputStream getStylesData() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic InputStream getThemesData() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic InputStream getWorkbookData() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic InputStream getSheet(String relId) throws IOException, InvalidFormatException
relId - The relationId of the sheet, from a r:id on the workbookIOExceptionInvalidFormatExceptionpublic Iterator<InputStream> getSheetsData() throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic PackagePart getExternalLink(String relId) throws IOException, InvalidFormatException
relId - the relationId of the external reference, from a r:id on the workbookIOExceptionInvalidFormatExceptionCopyright © 2020. All rights reserved.