Class XSSFBReader
- java.lang.Object
-
- org.apache.poi.xssf.eventusermodel.XSSFReader
-
- org.apache.poi.xssf.eventusermodel.XSSFBReader
-
public class XSSFBReader extends XSSFReader
Reader for xlsb files.- Since:
- 3.16-beta3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXSSFBReader.SheetIterator
-
Constructor Summary
Constructors Constructor Description XSSFBReader(OPCPackage pkg)Creates a new XSSFReader, for the given package
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAbsPathMetadata()In Excel 2013, the absolute path where the file was last saved may be stored in theXSSFBRecordType.BrtAbsPath15record.java.util.Iterator<java.io.InputStream>getSheetsData()Returns an Iterator which will let you get at all the different Sheets in turn.XSSFBStylesTablegetXSSFBStylesTable()-
Methods inherited from class org.apache.poi.xssf.eventusermodel.XSSFReader
getSharedStringsData, getSharedStringsTable, getSheet, getStylesData, getStylesTable, getThemesData, getWorkbookData
-
-
-
-
Constructor Detail
-
XSSFBReader
public XSSFBReader(OPCPackage pkg) throws java.io.IOException, OpenXML4JException
Creates a new XSSFReader, for the given package- Parameters:
pkg- opc package- Throws:
java.io.IOExceptionOpenXML4JException
-
-
Method Detail
-
getAbsPathMetadata
public java.lang.String getAbsPathMetadata() throws java.io.IOExceptionIn 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:
java.io.IOException- when there's a problem with the workbook part's stream
-
getSheetsData
public java.util.Iterator<java.io.InputStream> getSheetsData() throws java.io.IOException, InvalidFormatExceptionReturns 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:
getSheetsDatain classXSSFReader- Throws:
java.io.IOExceptionInvalidFormatException
-
getXSSFBStylesTable
public XSSFBStylesTable getXSSFBStylesTable() throws java.io.IOException
- Throws:
java.io.IOException
-
-