public class XSSFReader
extends java.lang.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(java.lang.String relId)
Returns an ExternalLinkPart with the specified relationId.
|
java.io.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.
|
java.io.InputStream |
getSheet(java.lang.String relId)
Returns an InputStream to read the contents of the
specified Sheet.
|
java.util.Iterator<java.io.InputStream> |
getSheetsData()
Returns an Iterator which will let you get at all the
different Sheets in turn.
|
java.io.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
|
java.io.InputStream |
getThemesData()
Returns an InputStream to read the contents of the
themes table.
|
java.io.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 java.io.IOException, OpenXML4JException
java.io.IOException
OpenXML4JException
public SharedStringsTable getSharedStringsTable() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public StylesTable getStylesTable() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public java.io.InputStream getSharedStringsData() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public java.io.InputStream getStylesData() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public java.io.InputStream getThemesData() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public java.io.InputStream getWorkbookData() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public java.io.InputStream getSheet(java.lang.String relId) throws java.io.IOException, InvalidFormatException
relId
- The relationId of the sheet, from a r:id on the workbookjava.io.IOException
InvalidFormatException
public java.util.Iterator<java.io.InputStream> getSheetsData() throws java.io.IOException, InvalidFormatException
java.io.IOException
InvalidFormatException
public PackagePart getExternalLink(java.lang.String relId) throws java.io.IOException, InvalidFormatException
relId
- the relationId of the external reference, from a r:id on the workbookjava.io.IOException
InvalidFormatException
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.