Class XSSFBReader
java.lang.Object
org.apache.poi.xssf.eventusermodel.XSSFReader
org.apache.poi.xssf.eventusermodel.XSSFBReader
Reader for xlsb files.
- Since:
- 3.16-beta3
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.poi.xssf.eventusermodel.XSSFReader
XSSFReader.XMLSheetRefReader, XSSFReader.XSSFSheetRef -
Field Summary
Fields inherited from class org.apache.poi.xssf.eventusermodel.XSSFReader
pkg, useReadOnlySharedStringsTable, workbookPart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIn Excel 2013, the absolute path where the file was last saved may be stored in theXSSFBRecordType.BrtAbsPath15record.Returns an Iterator which will let you get at all the different Sheets in turn.Methods inherited from class org.apache.poi.xssf.eventusermodel.XSSFReader
getSharedStringsData, getSharedStringsTable, getSheet, getSheetCommentsPart, getSheetDrawingParts, getSheetPart, getSheetsData, getStylesData, getStylesTable, getThemesData, getWorkbookData, setUseReadOnlySharedStringsTable, useReadOnlySharedStringsTable
-
Constructor Details
-
XSSFBReader
Creates a new XSSFReader, for the given package- Parameters:
pkg- opc package- Throws:
OpenXML4JException- if the package data format is invalidIOException- if there is an I/O issue reading the data
-
-
Method Details
-
getAbsPathMetadata
In Excel 2013, the absolute path where the file was last saved may be stored in theXSSFBRecordType.BrtAbsPath15record. The equivalent in ooxml is <x15ac:absPath>.- Returns:
- absolute path or
nullif it could not be found. - Throws:
IOException- when there's a problem with the workbook part's stream
-
getSheetIterator
Returns an Iterator which will let you get at all the different Sheets in turn. Each sheet's InputStream is only opened when fetched from the Iterator. It's up to you to close the InputStreams when done with each one.- Overrides:
getSheetIteratorin classXSSFReader- Returns:
- iterator of
InputStreams - Throws:
InvalidFormatException- if the sheet data format is invalidIOException- if there is an I/O issue reading the data- Since:
- 5.4.0
-
getXSSFBStylesTable
- Throws:
IOException
-