public class XSSFReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XSSFReader.SheetIterator
Iterator over sheet data.
(工作表数据的迭代器。)
|
protected static class |
XSSFReader.XSSFSheetRef |
Modifier and Type | Field and Description |
---|---|
protected OPCPackage |
pkg |
protected PackagePart |
workbookPart |
Constructor and Description |
---|
XSSFReader(OPCPackage pkg)
Creates a new XSSFReader, for the given package
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getSharedStringsData()
Returns an InputStream to read the contents of the shared strings table.
(返回一个 InputStream 以读取共享字符串表的内容。)
|
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.
(返回一个 InputStream 以读取指定 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.
(返回一个 InputStream 以读取样式表的内容。)
|
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.
(返回一个 InputStream 以读取主题表的内容。)
|
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.
(返回一个 InputStream 以读取主 Workbook 的内容,其中包含文件的关键整体数据,包括工作表定义。)
|
protected OPCPackage pkg
protected PackagePart workbookPart
public XSSFReader(OPCPackage pkg) throws java.io.IOException, OpenXML4JException
java.io.IOException
(java.io.IOException)
OpenXML4JException
(OpenXML4JException)
public SharedStringsTable getSharedStringsTable() throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
public StylesTable getStylesTable() throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
public java.io.InputStream getSharedStringsData() throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
public java.io.InputStream getStylesData() throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
public java.io.InputStream getThemesData() throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
public java.io.InputStream getWorkbookData() throws java.io.IOException, InvalidFormatException
java.io.IOException
(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 workbook
(relId - 工作表的关系 ID,来自工作簿上的 ar:id)
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
public java.util.Iterator<java.io.InputStream> getSheetsData() throws java.io.IOException, InvalidFormatException
java.io.IOException
(java.io.IOException)
InvalidFormatException
(无效格式异常)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.