| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FontsFolderPath
Gets or sets the location of font files that will be used when exporting pdf.
|
| Constructor and Description |
|---|
Workbook()
Creates the workbook.
|
Workbook(java.lang.String licenseKey)
Creates a workbook and apply the specified license.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AddCustomFunction(CustomFunction func)
Add custom function into the function set.
|
static void |
AddCustomFunction(CustomFunction func,
boolean canOverride)
Add custom function into the function set.
|
void |
addDataSource(java.lang.String name,
java.lang.Object dataSource)
Add data source for template
|
void |
calculate()
Calculates formulas in the workbook as needed.
|
void |
calculateFull()
Forces to calculate all formulas of the workbook
|
void |
clear()
Clears data.
|
Workbook |
createWorkbook() |
void |
dirty()
Designates all the formulas of the workbook to be recalculated when the next
calculation occurs.
|
void |
EnsureSelectedSheetsInitialized() |
java.util.List<JsonError> |
fromJson(java.io.InputStream stream)
Generates a workbook from the json stream.
|
java.util.List<JsonError> |
fromJson(java.io.InputStream stream,
DeserializationOptions deserializationOptions)
Generates a workbook from a json stream.
|
java.util.List<JsonError> |
fromJson(java.lang.String json)
Generates a workbook from the json string.
|
java.util.List<JsonError> |
fromJson(java.lang.String json,
DeserializationOptions deserializationOptions)
Generates a workbook from a json string.
|
IWorksheet |
getActiveSheet()
Gets the active sheet.
|
Event<EventHandler<EventArgs>> |
getAfterSaveEvent()
Occurs after the workbook is saved.
|
boolean |
getAllowDynamicArray()
Deprecated.
|
java.lang.String |
getAuthor()
Gets the author.
|
IAutoCorrect |
getAutoCorrect() |
boolean |
getAutoParse()
Determines whether to parse automatically when setting range value to string
value.
|
boolean |
getAutoRoundValue()
Determines whether to round the number to 15 significant figures when getting the value.
|
Event<EventHandler<EventArgs>> |
getBeforeSaveEvent()
Occurs before the workbook is saved.
|
IWorkbookView |
getBookView()
Returns an object that represents the view settings of this workbook.
|
IBuiltInDocumentPropertyCollection |
getBuiltInDocumentProperties()
Gets a collection that represents all the built-in document
properties of the workbook.
|
java.util.Locale |
getCulture()
Gets the culture info of workbook, default is Locale.getDefault().
|
ExcelCultureInfo |
getCultureInfo()
Internal use
|
ICustomDocumentPropertyCollection |
getCustomDocumentProperties()
Gets a collection that represents all the custom document
properties of the workbook.
|
ICustomViews |
getCustomViews()
Gets a collection that represents all the custom document
properties of the workbook.
|
IWorkbookForShell |
getData() |
java.lang.String |
getDefaultTableStyle()
Specifies the table style that is used as the default TableStyle.
|
boolean |
getDeferUpdateDirtyState()
Gets whether update the dirty state of the formula cells immediately when changing the value of a cell.
|
boolean |
getEnableCalculation()
Specifies whether the calculation engine is working.
|
java.util.List<java.lang.String> |
getExcelLinkSources()
Returns the names of the linked excel documents.
|
java.lang.String |
getFullName()
Returns the name of the workbook, including its path on disk.
|
IGraphicsInfo |
getGraphicsInfo()
Provides graphics information.
|
IIconSets |
getIconSets()
Filters data in a workbook based on a cell icon from the IconSets collection.
|
IInternalHelper |
getInternalHelper()
Internal use
|
double |
getMaxiumDigitWidth(GraphicsType point) |
java.lang.String |
getName()
Gets a string value that represents the name of the workbook.
|
INames |
getNames()
Returns the
INames collection that represents all the names in the
specified workbook (including all worksheet-specific names). |
static java.lang.String[] |
getNames(java.io.InputStream fileStream)
Gets all sheet names and tables names that will be used as the parameter source of ImportData.
If the name is a table name, the worksheet name is qualified before the table name, such as "Sheet1!Table1". |
static java.lang.String[] |
getNames(java.lang.String fileName)
Gets all sheet names and tables names that will be used as the parameter source of ImportData.
If the name is a table name, the worksheet name is qualified before the table name, such as "Sheet1!Table1". |
Event<EventHandler<SheetEventArgs>> |
getNewSheetEvent()
Occurs when a new sheet is created in the workbook.
|
IFormatter |
getNumberFormatter(java.lang.String formatCode) |
Event<EventHandler<EventArgs>> |
getOpenedEvent()
Occurs when the workbook is opened.
|
IExcelOptions |
getOptions()
Returns the
IExcelOptions object that represents some settings to control workbook behavior. |
java.lang.String |
getPath()
Gets a string that represents the path to the workbook file that this
workbook object represents.
|
IGraphicsCore |
getPdfGraphics() |
IGraphicsCore |
getPDFGraphics() |
IPivotCaches |
getPivotCaches()
Gets a PivotCaches collection that represents all the PivotTable caches in
the specified workbook.
|
boolean |
getProtectStructure()
True if the order of the sheets in the workbook is protected.
|
boolean |
getProtectWindows()
True if the windows of the workbook are protected.
|
ReferenceStyle |
getReferenceStyle()
Gets the reference style.
|
boolean |
getResetAdjacentRangeBorder()
Determines whether to reset adjacent range's border when setting border for a range.
|
IWorksheets |
getSelectedSheets()
Returns a IWorksheets collection
that represents all the selected sheets in the specified workbook.
|
Event<EventHandler<SheetEventArgs>> |
getSheetActivateEvent()
Occurs when a sheet is active.
|
Event<EventHandler<SheetEventArgs>> |
getSheetBeforeDeleteEvent()
Occurs before a sheet is deleted.
|
Event<EventHandler<RangeEventArgs>> |
getSheetChangeEvent()
Occurs when something changes in the cells of a sheet.
|
Event<EventHandler<SheetEventArgs>> |
getSheetDeactivateEvent()
Occurs when a sheet is deactivated.
|
Event<EventHandler<RangeEventArgs>> |
getSheetSelectionChange()
Occurs when the selection changes on a sheet.
|
ISignatureSet |
getSignatures()
Gets a collection of Signature objects that correspond to
the digital signature attached to a document.
|
ISlicerCaches |
getSlicerCaches()
Gets the
ISlicerCaches object associated with the workbook. |
StyleData |
GetStyle(int styleID) |
IStyleCollection |
getStyles()
Provides access to the collection of cell styles in the current workbook.
|
ITableStyleCollection |
getTableStyles()
Gets the table styles used in the current workbook.
|
static IJsonSerializer |
getTagJsonSerializer()
Gets json serializer for custom type
|
ITheme |
getTheme()
Returns an instance of ITheme which provides access to the theme associated
with a workbook.
|
java.util.List<FontInfo> |
getUsedFonts()
Gets all fonts information that are used on workbook.
|
static IJsonSerializer |
getValueJsonSerializer()
Gets json serializer for custom type
|
IWorksheets |
getWorksheets()
Gets a collection of worksheets contained in the workbook.
|
WriteProtection |
getWriteProtection()
Provides access to the workbook write protection options.
|
static java.lang.Object[][] |
importData(java.io.InputStream fileStream,
java.lang.String sourceName)
Import all the data of the specified source of the file.
|
static java.lang.Object[][] |
importData(java.io.InputStream fileStream,
java.lang.String worksheetName,
int row,
int column,
int rowCount,
int columnCount)
Import the data of a specified range from a fileStream.
|
static java.lang.Object[][] |
importData(java.lang.String fileName,
java.lang.String sourceName)
Import all the data of the specified source of the file.
|
static java.lang.Object[][] |
importData(java.lang.String fileName,
java.lang.String worksheetName,
int row,
int column,
int rowCount,
int columnCount)
Import the data of a specified range from a file.
|
boolean |
isEncryptedFile(java.io.InputStream fileStream)
Specifies whether the file is password protected.
|
boolean |
isEncryptedFile(java.lang.String fileName)
Specifies whether the file is password protected.
|
void |
open(java.io.InputStream fileStream)
Opens the specified excel file stream.
|
void |
open(java.io.InputStream fileStream,
OpenFileFormat fileFormat)
Opens the stream with specified file format.
|
void |
open(java.io.InputStream fileStream,
OpenOptionsBase options)
Opens the stream with specified options, the open options can be
XlsxOpenOptions, CsvOpenOptions.
|
void |
open(java.io.InputStream fileStream,
java.lang.String password)
Deprecated.
Use
open(InputStream, OpenOptionsBase) instead |
void |
open(java.lang.String fileName)
Opens the specified excel file
|
java.util.List<JsonError> |
open(java.lang.String fileName,
DeserializationOptions deserializationOptions)
Opens the json file.
|
void |
open(java.lang.String fileName,
OpenFileFormat fileFormat)
Opens the file with specified file format.
|
void |
open(java.lang.String fileName,
OpenOptionsBase options)
Opens the file with specified options, the open options can be
XlsxOpenOptions, CsvOpenOptions.
|
void |
open(java.lang.String fileName,
java.lang.String password)
Deprecated.
Use
open(String, OpenOptionsBase) instead |
void |
processTemplate()
Start to process the template
|
void |
protect()
Protects a workbook so that it cannot be modified.
|
void |
protect(boolean structure)
Protects a workbook so that it cannot be modified.
|
void |
protect(boolean structure,
boolean windows)
Protects a workbook so that it cannot be modified.
|
void |
protect(java.lang.String password)
Protects a workbook so that it cannot be modified.
|
void |
protect(java.lang.String password,
boolean structure)
Protects a workbook so that it cannot be modified.
|
void |
protect(java.lang.String password,
boolean structure,
boolean windows)
Protects a workbook so that it cannot be modified.
|
void |
save(java.io.OutputStream outputStream)
Saves the workbook to the stream.
|
void |
save(java.io.OutputStream fileStream,
SaveFileFormat fileFormat)
Saves workbook to stream with specified file format.
|
void |
save(java.io.OutputStream fileStream,
SaveOptionsBase options)
Saves workbook to stream with specified options, the option can be
XlsxSaveOptions, CsvSaveOptions
|
void |
save(java.io.OutputStream outputStream,
java.lang.String password)
Deprecated.
Use
save(OutputStream, SaveOptionsBase) instead |
void |
save(java.lang.String fileName)
Saves the workbook to the disk.
|
void |
save(java.lang.String fileName,
SaveFileFormat fileFormat)
Saves workbook to file with specified file format.
|
void |
save(java.lang.String fileName,
SaveOptionsBase options)
Saves workbook to file with specified options, the option can be
XlsxSaveOptions, CsvSaveOptions
|
void |
save(java.lang.String fileName,
java.lang.String password)
Deprecated.
Use
save(String, SaveOptionsBase) instead |
void |
SelectSheets(boolean replace,
java.lang.Iterable<java.lang.String> selection) |
void |
setAllowDynamicArray(boolean value)
Deprecated.
|
void |
setAuthor(java.lang.String value)
Sets the author.
|
void |
setAutoParse(boolean value)
Sets whether to automatically parse when setting a range value to a string
value.
|
void |
setAutoRoundValue(boolean value)
Sets whether to round the number to 15 significant figures when getting the value.
|
void |
setCulture(java.util.Locale value)
Sets culture info for the workbook.
|
void |
setDefaultTableStyle(java.lang.String value)
Sets the table style name from the
ITableStyleCollection collection
that is used as the default TableStyle. |
void |
setDeferUpdateDirtyState(boolean value)
Sets whether update the dirty state of the formula cells immediately when changing the value of a cell.
|
void |
setEnableCalculation(boolean value)
Sets whether the calculation engine is valid.
|
void |
setGraphicsInfo(IGraphicsInfo value)
Provides graphics information.
|
static void |
SetLicenseFile(java.lang.String licenseFilePath)
For licenses of the Chinese market, apply deployment license or unlimited dev license from file.
|
static void |
SetLicenseKey(java.lang.String key)
Sets license for all workbook instances.
|
void |
setName(java.lang.String name)
Sets a string value that represents the name of the workbook.
|
void |
setPath(java.lang.String path)
Sets a string that represents the path to the workbook file that this
workbook object represents.
|
void |
setReferenceStyle(ReferenceStyle value)
Sets the reference style.
|
void |
setResetAdjacentRangeBorder(boolean value)
Determines whether to reset adjacent range's border when setting border for a range.
|
static void |
setTagJsonSerializer(IJsonSerializer value)
Sets json serializer for custom type in from/to json.
|
void |
setTheme(ITheme value)
Sets the theme applied to the current workbook.
|
static void |
setValueJsonSerializer(IJsonSerializer value)
Sets json serializer for custom type in from/to json.
|
java.lang.String |
toJson()
Generates a json string from the workbook.
|
void |
toJson(java.io.OutputStream stream)
Generates a zipped json string from the workbook.
|
void |
toJson(java.io.OutputStream stream,
SerializationOptions serializationOptions)
Generates a json stream from a workbook.
|
java.lang.String |
toJson(SerializationOptions serializationOptions)
Generates a json string from the workbook.
|
Color |
ToRGBColor(ColorData color) |
void |
unprotect()
Removes protection from the workbook.
|
void |
unprotect(java.lang.String password)
Removes protection from the workbook.
|
void |
updateExcelLink(java.lang.String name)
Updates a excel link.
|
void |
updateExcelLink(java.lang.String name,
IWorkbook sourceWorkbook)
Updates a excel link.
|
void |
updateExcelLinks()
Updates all the excel links.
|
public static java.lang.String FontsFolderPath
public Workbook()
public Workbook(java.lang.String licenseKey)
Important: For licenses of the Chinese market, use SetLicenseFile or
set license in the GCEXCEL_JAVA_DEPLOY_LICENSE_V5 environment variable instead.
licenseKey - license key@Deprecated public boolean getAllowDynamicArray()
getAllowDynamicArray in interface IWorkbook@Deprecated public void setAllowDynamicArray(boolean value)
setAllowDynamicArray in interface IWorkbookpublic boolean getDeferUpdateDirtyState()
getDeferUpdateDirtyState in interface IWorkbookpublic void setDeferUpdateDirtyState(boolean value)
setDeferUpdateDirtyState in interface IWorkbookpublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getFullName()
getFullName in interface IWorkbookpublic java.lang.String getPath()
public void setPath(java.lang.String path)
public void open(java.lang.String fileName)
public java.util.List<JsonError> open(java.lang.String fileName, DeserializationOptions deserializationOptions)
@Deprecated
public void open(java.lang.String fileName,
java.lang.String password)
open(String, OpenOptionsBase) insteadpublic void open(java.lang.String fileName,
OpenFileFormat fileFormat)
public void open(java.lang.String fileName,
OpenOptionsBase options)
public final void open(java.io.InputStream fileStream)
@Deprecated
public void open(java.io.InputStream fileStream,
java.lang.String password)
open(InputStream, OpenOptionsBase) insteadpublic void open(java.io.InputStream fileStream,
OpenFileFormat fileFormat)
public void open(java.io.InputStream fileStream,
OpenOptionsBase options)
public void save(java.lang.String fileName)
@Deprecated
public void save(java.lang.String fileName,
java.lang.String password)
save(String, SaveOptionsBase) insteadpublic void save(java.lang.String fileName,
SaveOptionsBase options)
public void save(java.lang.String fileName,
SaveFileFormat fileFormat)
public void save(java.io.OutputStream outputStream)
@Deprecated
public void save(java.io.OutputStream outputStream,
java.lang.String password)
save(OutputStream, SaveOptionsBase) insteadpublic void save(java.io.OutputStream fileStream,
SaveOptionsBase options)
public void save(java.io.OutputStream fileStream,
SaveFileFormat fileFormat)
public IGraphicsCore getPdfGraphics()
public Event<EventHandler<EventArgs>> getAfterSaveEvent()
getAfterSaveEvent in interface IWorkbookpublic Event<EventHandler<EventArgs>> getBeforeSaveEvent()
getBeforeSaveEvent in interface IWorkbookpublic Event<EventHandler<SheetEventArgs>> getNewSheetEvent()
getNewSheetEvent in interface IWorkbookpublic Event<EventHandler<EventArgs>> getOpenedEvent()
getOpenedEvent in interface IWorkbookpublic Event<EventHandler<SheetEventArgs>> getSheetActivateEvent()
getSheetActivateEvent in interface IWorkbookpublic Event<EventHandler<SheetEventArgs>> getSheetBeforeDeleteEvent()
getSheetBeforeDeleteEvent in interface IWorkbookpublic Event<EventHandler<RangeEventArgs>> getSheetChangeEvent()
getSheetChangeEvent in interface IWorkbookpublic Event<EventHandler<SheetEventArgs>> getSheetDeactivateEvent()
getSheetDeactivateEvent in interface IWorkbookpublic Event<EventHandler<RangeEventArgs>> getSheetSelectionChange()
getSheetSelectionChange in interface IWorkbookpublic IGraphicsCore getPDFGraphics()
public IWorkbookForShell getData()
public IExcelOptions getOptions()
IExcelOptions object that represents some settings to control workbook behavior.getOptions in interface IWorkbookpublic IBuiltInDocumentPropertyCollection getBuiltInDocumentProperties()
getBuiltInDocumentProperties in interface IWorkbookpublic ICustomDocumentPropertyCollection getCustomDocumentProperties()
getCustomDocumentProperties in interface IWorkbookpublic ICustomViews getCustomViews()
getCustomViews in interface IWorkbookpublic WriteProtection getWriteProtection()
getWriteProtection in interface IWorkbookpublic ISignatureSet getSignatures()
getSignatures in interface IWorkbookpublic static IJsonSerializer getTagJsonSerializer()
public static void setTagJsonSerializer(IJsonSerializer value)
value - public static IJsonSerializer getValueJsonSerializer()
public static void setValueJsonSerializer(IJsonSerializer value)
value - public boolean getAutoParse()
getAutoParse in interface IWorkbookpublic void setAutoParse(boolean value)
setAutoParse in interface IWorkbookpublic boolean getAutoRoundValue()
getAutoRoundValue in interface IWorkbookpublic void setAutoRoundValue(boolean value)
setAutoRoundValue in interface IWorkbookpublic IAutoCorrect getAutoCorrect()
public IWorkbookView getBookView()
getBookView in interface IWorkbookpublic boolean getProtectStructure()
getProtectStructure in interface IWorkbookpublic boolean getProtectWindows()
getProtectWindows in interface IWorkbookpublic ReferenceStyle getReferenceStyle()
getReferenceStyle in interface IWorkbookpublic void setReferenceStyle(ReferenceStyle value)
setReferenceStyle in interface IWorkbookpublic IWorksheets getWorksheets()
getWorksheets in interface IWorkbookpublic IWorksheet getActiveSheet()
getActiveSheet in interface IWorkbookpublic ITheme getTheme()
public void setTheme(ITheme value)
public IIconSets getIconSets()
getIconSets in interface IWorkbookpublic java.lang.String getDefaultTableStyle()
getDefaultTableStyle in interface IWorkbookpublic void setDefaultTableStyle(java.lang.String value)
ITableStyleCollection collection
that is used as the default TableStyle.setDefaultTableStyle in interface IWorkbookpublic java.util.Locale getCulture()
getCulture in interface IWorkbookpublic void setCulture(java.util.Locale value)
setCulture in interface IWorkbookpublic boolean getEnableCalculation()
getEnableCalculation in interface IWorkbookpublic void setEnableCalculation(boolean value)
setEnableCalculation in interface IWorkbookpublic static void AddCustomFunction(CustomFunction func)
func - the custom function instance.public static void AddCustomFunction(CustomFunction func, boolean canOverride)
func - the custom function instance.canOverride - override the exist function.public IPivotCaches getPivotCaches()
getPivotCaches in interface IWorkbookpublic ISlicerCaches getSlicerCaches()
ISlicerCaches object associated with the workbook.getSlicerCaches in interface IWorkbookpublic Color ToRGBColor(ColorData color)
color - public java.util.List<FontInfo> getUsedFonts()
getUsedFonts in interface IWorkbookpublic void calculate()
public void calculateFull()
public void dirty()
public void clear()
public IStyleCollection getStyles()
public ITableStyleCollection getTableStyles()
getTableStyles in interface IWorkbookpublic INames getNames()
INames collection that represents all the names in the
specified workbook (including all worksheet-specific names).public java.lang.String getAuthor()
public void setAuthor(java.lang.String value)
public boolean isEncryptedFile(java.lang.String fileName)
isEncryptedFile in interface IWorkbookfileName - The file name.public boolean isEncryptedFile(java.io.InputStream fileStream)
isEncryptedFile in interface IWorkbookfileStream - The file stream.public java.lang.String toJson()
public java.lang.String toJson(SerializationOptions serializationOptions)
toJson in interface IWorkbookserializationOptions - the SerializationOptions object.public void toJson(java.io.OutputStream stream)
public void toJson(java.io.OutputStream stream,
SerializationOptions serializationOptions)
toJson in interface IWorkbookstream - the output stream.serializationOptions - the SerializationOptions object.public java.util.List<JsonError> fromJson(java.lang.String json)
public java.util.List<JsonError> fromJson(java.lang.String json, DeserializationOptions deserializationOptions)
fromJson in interface IWorkbookjson - the json.deserializationOptions - the DeserializationOptions object.public java.util.List<JsonError> fromJson(java.io.InputStream stream)
public java.util.List<JsonError> fromJson(java.io.InputStream stream, DeserializationOptions deserializationOptions)
fromJson in interface IWorkbookstream - the streamdeserializationOptions - the DeserializationOptions object.public void protect()
public void protect(boolean structure)
public void protect(boolean structure,
boolean windows)
protect in interface IWorkbookstructure - True to protect the structure of the workbook (To prevent other
users from viewing hidden worksheets, adding, moving, deleting, or
hiding worksheets, and renaming worksheets).windows - True to prevent users from moving, resizing, or closing the
workbook window, or hide/unhide windows. This option is available
only in Excel 2007, Excel 2010, Excel for Mac 2011, and Excel 2016
for Mac.public void protect(java.lang.String password)
public void protect(java.lang.String password,
boolean structure)
public void protect(java.lang.String password,
boolean structure,
boolean windows)
protect in interface IWorkbookpassword - Password to protect the workbook.structure - True to protect the structure of the workbook (To prevent other users from viewing hidden worksheets, adding, moving, deleting, or hiding worksheets, and renaming worksheets).windows - True to prevent users from moving, resizing, or closing the workbook window, or hide/unhide windows. This option is available only in Excel 2007, Excel 2010, Excel for Mac 2011, and Excel 2016 for Mac.public void unprotect()
public void unprotect(java.lang.String password)
public void addDataSource(java.lang.String name,
java.lang.Object dataSource)
addDataSource in interface IWorkbookname - : the alias name of the data sourcedataSource: - Can be object of ResultSet, Custom object and variablepublic void processTemplate()
processTemplate in interface IWorkbookpublic boolean getResetAdjacentRangeBorder()
getResetAdjacentRangeBorder in interface IWorkbookpublic void setResetAdjacentRangeBorder(boolean value)
setResetAdjacentRangeBorder in interface IWorkbookvalue - public static void SetLicenseKey(java.lang.String key)
Important: For licenses of the Chinese market, use SetLicenseFile or
set license in the GCEXCEL_JAVA_DEPLOY_LICENSE_V5 environment variable instead.
key - license keypublic static void SetLicenseFile(java.lang.String licenseFilePath)
This method shouldn't be called if your license was purchased from other markets.
licenseFilePath - The file that contains license keypublic StyleData GetStyle(int styleID)
styleID - public IFormatter getNumberFormatter(java.lang.String formatCode)
formatCode - public final void SelectSheets(boolean replace,
java.lang.Iterable<java.lang.String> selection)
replace - selection - public IInternalHelper getInternalHelper()
public ExcelCultureInfo getCultureInfo()
public double getMaxiumDigitWidth(GraphicsType point)
point - public final IGraphicsInfo getGraphicsInfo()
getGraphicsInfo in interface IWorkbookpublic final void setGraphicsInfo(IGraphicsInfo value)
setGraphicsInfo in interface IWorkbookpublic final IWorksheets getSelectedSheets()
getSelectedSheets in interface IWorkbookpublic void EnsureSelectedSheetsInitialized()
public Workbook createWorkbook()
public java.util.List<java.lang.String> getExcelLinkSources()
getExcelLinkSources in interface IWorkbookpublic void updateExcelLinks()
updateExcelLinks in interface IWorkbookpublic void updateExcelLink(java.lang.String name)
updateExcelLink in interface IWorkbookpublic void updateExcelLink(java.lang.String name,
IWorkbook sourceWorkbook)
updateExcelLink in interface IWorkbookpublic static java.lang.String[] getNames(java.lang.String fileName)
fileName - The path and name for the file.public static java.lang.String[] getNames(java.io.InputStream fileStream)
fileStream - The fileStream of a workbook.public static java.lang.Object[][] importData(java.lang.String fileName,
java.lang.String sourceName)
fileName - The path and name for the file.sourceName - The name of the source data. The source name could be:public static java.lang.Object[][] importData(java.lang.String fileName,
java.lang.String worksheetName,
int row,
int column,
int rowCount,
int columnCount)
fileName - The path and name for the file.worksheetName - The name of the worksheet.row - The first row of the range.column - The first column of the range.rowCount - The count of the rows.columnCount - The count of the columns.public static java.lang.Object[][] importData(java.io.InputStream fileStream,
java.lang.String sourceName)
fileStream - The fileStream of a workbook.sourceName - The name of the source data. The source name could be:public static java.lang.Object[][] importData(java.io.InputStream fileStream,
java.lang.String worksheetName,
int row,
int column,
int rowCount,
int columnCount)
fileStream - The fileStream of a workbook.worksheetName - The name of the worksheet.row - The first row of the range.column - The first column of the range.rowCount - The count of the rows.columnCount - The count of the columns.