public class StreamingWorkbook extends Object implements Workbook, Date1904Support, AutoCloseable
MAX_SENSITIVE_SHEET_NAME_LEN, PICTURE_TYPE_DIB, PICTURE_TYPE_EMF, PICTURE_TYPE_JPEG, PICTURE_TYPE_PICT, PICTURE_TYPE_PNG, PICTURE_TYPE_WMF| Constructor and Description |
|---|
StreamingWorkbook(StreamingWorkbookReader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
addOlePackage(byte[] bytes,
String s,
String s1,
String s2)
Not supported
|
int |
addPicture(byte[] pictureData,
int format)
Not supported
|
void |
addToolPack(UDFFinder toopack)
Not supported
|
Sheet |
cloneSheet(int sheetNum)
Not supported
|
void |
close() |
CellStyle |
createCellStyle()
Not supported
|
DataFormat |
createDataFormat()
Not supported
|
EvaluationWorkbook |
createEvaluationWorkbook()
Not supported
|
Font |
createFont()
Not supported
|
Name |
createName()
Not supported
|
Sheet |
createSheet()
Not supported
|
Sheet |
createSheet(String sheetname)
Not supported
|
Font |
findFont(boolean b,
short i,
short i1,
String s,
boolean b1,
boolean b2,
short i2,
byte b3)
Not supported
|
int |
getActiveSheetIndex()
Not supported
|
List<? extends Name> |
getAllNames()
Not supported
|
List<? extends PictureData> |
getAllPictures()
Gets all pictures from the Workbook.
|
CellReferenceType |
getCellReferenceType()
Not supported
|
CellStyle |
getCellStyleAt(int i)
Not supported
|
POIXMLProperties.CoreProperties |
getCoreProperties()
Returns the Core Properties if this feature is enabled on the
StreamingReader.Builder |
CreationHelper |
getCreationHelper()
Not supported
|
int |
getFirstVisibleTab()
Not supported
|
Font |
getFontAt(int i)
Not supported
|
boolean |
getForceFormulaRecalculation()
Not supported
|
Row.MissingCellPolicy |
getMissingCellPolicy()
Not supported
|
Name |
getName(String name)
Not supported
|
List<? extends Name> |
getNames(String s)
Not supported
|
int |
getNumberOfFonts()
Not supported
|
int |
getNumberOfFontsAsInt()
Not supported
|
int |
getNumberOfNames()
Not supported
|
int |
getNumberOfSheets() |
int |
getNumCellStyles()
Not supported
|
String |
getPrintArea(int sheetIndex)
Not supported
|
Sheet |
getSheet(String name)
Get sheet with the given name
|
Sheet |
getSheetAt(int index) |
int |
getSheetIndex(Sheet sheet)
Returns the index of the given sheet
|
int |
getSheetIndex(String name)
Returns the index of the sheet by his name (case insensitive match)
|
String |
getSheetName(int sheet) |
SheetVisibility |
getSheetVisibility(int i)
Not supported
|
SpreadsheetVersion |
getSpreadsheetVersion() |
boolean |
isDate1904() |
boolean |
isHidden()
Not supported
|
boolean |
isSheetHidden(int sheetIx) |
boolean |
isSheetVeryHidden(int sheetIx) |
Iterator<Sheet> |
iterator() |
int |
linkExternalWorkbook(String name,
Workbook workbook)
Not supported
|
void |
removeName(Name name)
Not supported
|
void |
removePrintArea(int sheetIndex)
Not supported
|
void |
removeSheetAt(int index)
Not supported
|
void |
setActiveSheet(int sheetIndex)
Not supported
|
void |
setCellReferenceType(CellReferenceType cellReferenceType)
Not supported
|
void |
setFirstVisibleTab(int sheetIndex)
Not supported
|
void |
setForceFormulaRecalculation(boolean value)
Not supported
|
void |
setHidden(boolean hiddenFlag)
Not supported
|
void |
setMissingCellPolicy(Row.MissingCellPolicy missingCellPolicy)
Not supported
|
void |
setPrintArea(int sheetIndex,
int startColumn,
int endColumn,
int startRow,
int endRow)
Not supported
|
void |
setPrintArea(int sheetIndex,
String reference)
Not supported
|
void |
setSelectedTab(int index)
Not supported
|
void |
setSheetHidden(int sheetIx,
boolean hidden)
Not supported
|
void |
setSheetName(int sheet,
String name)
Not supported
|
void |
setSheetOrder(String sheetname,
int pos)
Not supported
|
void |
setSheetVisibility(int i,
SheetVisibility sheetVisibility)
Not supported
|
Iterator<Sheet> |
sheetIterator() |
Spliterator<Sheet> |
spliterator() |
void |
write(OutputStream stream)
Not supported
|
public StreamingWorkbook(StreamingWorkbookReader reader)
public Iterator<Sheet> sheetIterator()
sheetIterator in interface Workbookpublic Spliterator<Sheet> spliterator()
spliterator in interface Iterable<Sheet>spliterator in interface Workbookpublic String getSheetName(int sheet)
getSheetName in interface Workbookpublic int getSheetIndex(String name)
getSheetIndex in interface Workbookname - the sheet name-1 if not foundpublic int getSheetIndex(Sheet sheet)
getSheetIndex in interface Workbooksheet - the sheet to look up-1 if not foundIllegalArgumentException - if the sheet provided is not a StreamingSheetpublic int getNumberOfSheets()
getNumberOfSheets in interface Workbookpublic Sheet getSheetAt(int index) throws ReadException
getSheetAt in interface WorkbookReadExceptionpublic Sheet getSheet(String name) throws MissingSheetException, ReadException
getSheet in interface Workbookname - - of the sheetMissingSheetException - if no sheet is found with the provided nameReadException - if there is a problem reading the Excel filepublic boolean isSheetHidden(int sheetIx)
isSheetHidden in interface Workbookpublic boolean isSheetVeryHidden(int sheetIx)
isSheetVeryHidden in interface Workbookpublic SpreadsheetVersion getSpreadsheetVersion()
getSpreadsheetVersion in interface Workbookpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface WorkbookIOExceptionpublic POIXMLProperties.CoreProperties getCoreProperties()
StreamingReader.BuilderIllegalStateException - if StreamingReader.Builder.setReadCoreProperties(boolean) is not set to truepublic List<? extends PictureData> getAllPictures()
getAllPictures in interface WorkbookXSSFPictureData objects.)public boolean isDate1904()
isDate1904 in interface Date1904Supportpublic int getActiveSheetIndex()
getActiveSheetIndex in interface Workbookpublic void setActiveSheet(int sheetIndex)
setActiveSheet in interface Workbookpublic int getFirstVisibleTab()
getFirstVisibleTab in interface Workbookpublic void setFirstVisibleTab(int sheetIndex)
setFirstVisibleTab in interface Workbookpublic void setSheetOrder(String sheetname, int pos)
setSheetOrder in interface Workbookpublic void setSelectedTab(int index)
setSelectedTab in interface Workbookpublic void setSheetName(int sheet,
String name)
setSheetName in interface Workbookpublic Sheet createSheet()
createSheet in interface Workbookpublic Sheet createSheet(String sheetname)
createSheet in interface Workbookpublic Sheet cloneSheet(int sheetNum)
cloneSheet in interface Workbookpublic void removeSheetAt(int index)
removeSheetAt in interface Workbookpublic Font createFont()
createFont in interface Workbookpublic Font findFont(boolean b, short i, short i1, String s, boolean b1, boolean b2, short i2, byte b3)
public int getNumberOfFonts()
getNumberOfFonts in interface Workbookpublic int getNumberOfFontsAsInt()
getNumberOfFontsAsInt in interface Workbookpublic CellStyle createCellStyle()
createCellStyle in interface Workbookpublic int getNumCellStyles()
getNumCellStyles in interface Workbookpublic CellStyle getCellStyleAt(int i)
getCellStyleAt in interface Workbookpublic void write(OutputStream stream) throws IOException
write in interface WorkbookIOExceptionpublic int getNumberOfNames()
getNumberOfNames in interface Workbookpublic List<? extends Name> getAllNames()
getAllNames in interface Workbookpublic Name createName()
createName in interface Workbookpublic void removeName(Name name)
removeName in interface Workbookpublic int linkExternalWorkbook(String name, Workbook workbook)
linkExternalWorkbook in interface Workbookpublic void setPrintArea(int sheetIndex,
String reference)
setPrintArea in interface Workbookpublic void setPrintArea(int sheetIndex,
int startColumn,
int endColumn,
int startRow,
int endRow)
setPrintArea in interface Workbookpublic String getPrintArea(int sheetIndex)
getPrintArea in interface Workbookpublic void removePrintArea(int sheetIndex)
removePrintArea in interface Workbookpublic Row.MissingCellPolicy getMissingCellPolicy()
getMissingCellPolicy in interface Workbookpublic void setMissingCellPolicy(Row.MissingCellPolicy missingCellPolicy)
setMissingCellPolicy in interface Workbookpublic DataFormat createDataFormat()
createDataFormat in interface Workbookpublic int addPicture(byte[] pictureData,
int format)
addPicture in interface Workbookpublic CreationHelper getCreationHelper()
getCreationHelper in interface Workbookpublic void setHidden(boolean hiddenFlag)
public void setSheetHidden(int sheetIx,
boolean hidden)
setSheetHidden in interface Workbookpublic SheetVisibility getSheetVisibility(int i)
getSheetVisibility in interface Workbookpublic void setSheetVisibility(int i,
SheetVisibility sheetVisibility)
setSheetVisibility in interface Workbookpublic void addToolPack(UDFFinder toopack)
addToolPack in interface Workbookpublic void setForceFormulaRecalculation(boolean value)
setForceFormulaRecalculation in interface Workbookpublic boolean getForceFormulaRecalculation()
getForceFormulaRecalculation in interface Workbookpublic int addOlePackage(byte[] bytes,
String s,
String s1,
String s2)
throws IOException
addOlePackage in interface WorkbookIOExceptionpublic EvaluationWorkbook createEvaluationWorkbook()
createEvaluationWorkbook in interface Workbookpublic CellReferenceType getCellReferenceType()
getCellReferenceType in interface Workbookpublic void setCellReferenceType(CellReferenceType cellReferenceType)
setCellReferenceType in interface Workbook