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 class
XSSFBReader.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.String
getAbsPathMetadata()
In Excel 2013, the absolute path where the file was last saved may be stored in theXSSFBRecordType.BrtAbsPath15
record.java.util.Iterator<java.io.InputStream>
getSheetsData()
Returns an Iterator which will let you get at all the different Sheets in turn.XSSFBStylesTable
getXSSFBStylesTable()
-
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.IOException
OpenXML4JException
-
-
Method Detail
-
getAbsPathMetadata
public java.lang.String getAbsPathMetadata() throws java.io.IOException
In Excel 2013, the absolute path where the file was last saved may be stored in theXSSFBRecordType.BrtAbsPath15
record. The equivalent in ooxml is <x15ac:absPath>.- Returns:
- absolute path or
null
if 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, InvalidFormatException
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:
getSheetsData
in classXSSFReader
- Throws:
java.io.IOException
InvalidFormatException
-
getXSSFBStylesTable
public XSSFBStylesTable getXSSFBStylesTable() throws java.io.IOException
- Throws:
java.io.IOException
-
-