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
IOException
OpenXML4JException
public SharedStringsTable getSharedStringsTable() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public StylesTable getStylesTable() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public InputStream getSharedStringsData() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public InputStream getStylesData() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public InputStream getThemesData() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public InputStream getWorkbookData() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public InputStream getSheet(String relId) throws IOException, InvalidFormatException
relId
- The relationId of the sheet, from a r:id on the workbookIOException
InvalidFormatException
public Iterator<InputStream> getSheetsData() throws IOException, InvalidFormatException
IOException
InvalidFormatException
public PackagePart getExternalLink(String relId) throws IOException, InvalidFormatException
relId
- the relationId of the external reference, from a r:id on the workbookIOException
InvalidFormatException
Copyright © 2020. All rights reserved.