Java org.apache.poi.xssf.usermodel XSSFWorkbook fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.xssf.usermodel XSSFWorkbook fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.xssf.usermodel XSSFWorkbook.

The text is from its open source code.

Subclass

org.apache.poi.xssf.usermodel.XSSFWorkbook has subclasses.
Click this link to see all its subclasses.

Constructor

XSSFWorkbook(XSSFFactory factory)
XSSFWorkbook(XSSFWorkbookType workbookType)
Create a new SpreadsheetML workbook.
XSSFWorkbook(OPCPackage pkg)
Constructs a XSSFWorkbook object given a OpenXML4J Package object, see http://poi.apache.org/oxml4j/.
XSSFWorkbook(InputStream is)
Constructs a XSSFWorkbook object, by buffering the whole stream into memory and then opening an OPCPackage object for it.
XSSFWorkbook(File file)
Constructs a XSSFWorkbook object from a given file.
XSSFWorkbook(String path)
Constructs a XSSFWorkbook object given a file name.
XSSFWorkbook(PackagePart part)
Constructs a XSSFWorkbook object using Package Part.
XSSFWorkbook()
Create a new SpreadsheetML workbook.

Method

intaddPicture(byte[] pictureData, int format)
Adds a picture to the workbook.
intaddPicture(InputStream is, int format)
Adds a picture to the workbook.
XSSFSheetcloneSheet(int sheetNum, String newName)
Create an XSSFSheet from an existing sheet in the XSSFWorkbook.
XSSFSheetcloneSheet(int sheetNum)
Create an XSSFSheet from an existing sheet in the XSSFWorkbook.
voidclose()
XSSFCellStylecreateCellStyle()
Create a new XSSFCellStyle and add it to the workbook's style table
XSSFDataFormatcreateDataFormat()
Returns the workbook's data format table (a factory for creating data format strings).
XSSFFontcreateFont()
Create a new Font and add it to the workbook's font table
XSSFNamecreateName()
XSSFSheetcreateSheet()
Create an XSSFSheet for this workbook, adds it to the sheets and returns the high level representation.
XSSFSheetcreateSheet(String sheetname)
Create a new sheet for this Workbook and return the high level representation.
intgetActiveSheetIndex()
Convenience method to get the active sheet.
ListgetAllEmbedds()
Get the document's embedded files.
ListgetAllPictures()
Gets all pictures from the Workbook.
XSSFCellStylegetCellStyleAt(int idx)
Get the cell style object at the given index
XSSFCreationHelpergetCreationHelper()
Returns an object that handles instantiating concrete classes of the various instances for XSSF.
CollectiongetCustomXMLMappings()
XSSFFontgetFontAt(short idx)
XSSFFontgetFontAt(int idx)
XSSFNamegetName(String name)
Get the first named range with the given name.
XSSFNamegetNameAt(int nameIndex)
Get the named range at the given index.
intgetNumberOfNames()
Get the number of named ranges in the this workbook
intgetNumberOfSheets()
Get the number of worksheets in the this workbook
intgetNumCellStyles()
Get the number of styles the workbook contains
POIXMLPropertiesgetProperties()
Get the document properties.
XSSFSheetgetSheet(String name)
Get sheet with the given name (case insensitive match)
XSSFSheetgetSheetAt(int index)
Get the XSSFSheet object at the given index.
intgetSheetIndex(String name)
Returns the index of the sheet by his name (case insensitive match)
intgetSheetIndex(Sheet sheet)
Returns the index of the given sheet
StringgetSheetName(int sheetIx)
Get the sheet name
StylesTablegetStylesSource()
Return a object representing a collection of shared objects used for styling content, e.g.
ThemesTablegetTheme()
Returns the Theme of current workbook.
Iteratoriterator()
Alias for #sheetIterator() to allow foreach loops Note: remove() is not supported on this iterator.
voidremoveSheetAt(int index)
Removes sheet at the given index.

Care must be taken if the removed sheet is the currently active or only selected sheet in the workbook.

voidsetActiveSheet(int index)
Convenience method to set the active sheet.
voidsetForceFormulaRecalculation(boolean value)
Whether the application shall perform a full recalculation when the workbook is opened.
voidsetMissingCellPolicy(MissingCellPolicy missingCellPolicy)
Sets the policy on what to do when getting missing or blank cells from a row.
voidsetPrintArea(int sheetIndex, int startColumn, int endColumn, int startRow, int endRow)
For the Convenience of Java Programmers maintaining pointers.
voidsetSheetName(int sheetIndex, String sheetname)
Set the sheet name.
voidsetSheetOrder(String sheetname, int pos)
sets the order of appearance for a given sheet.
voidwrite(OutputStream stream)
Write out this document to an Outputstream.