public interface IScellCoreApiFactory
Returns the API entry point IWorkbook
Creates a new SCell document or loads existing
Can be obtained from IScellApiResolver
:
ScellApiEntryPoint.getApiResolverAsync().thenAccept(apiResolver -> {
IScellCoreApiFactory coreApiProvider = apiResolver.resolve(IScellCoreApiFactory.class);
// ...
});
Modifier and Type | Method and Description |
---|---|
IWorkbook |
createNew()
Creates a new document
|
IWorkbook |
createNew(String firstWorksheetName)
Creates a new document
|
IProductInfo |
getProductInfo() |
IWorkbook |
load(File file)
Loads an existing spreadsheet file
|
IWorkbook |
load(File file,
Supplier<String> passwordSupplier)
Loads an existing spreadsheet file
|
IWorkbook |
load(InputStream inputStream,
Supplier<String> passwordSupplier,
String title)
Loads document as stream
|
IWorkbook createNew(String firstWorksheetName)
firstWorksheetName
- sets name of first worksheetIWorkbook
IWorkbook load(File file, Supplier<String> passwordSupplier)
IWorkbook load(InputStream inputStream, Supplier<String> passwordSupplier, String title)
inputStream
- InputStream of xlsx-content to openpasswordSupplier
- lambda to provide the password if the stream is protectedtitle
- document titleIWorkbook
IProductInfo getProductInfo()
IProductInfo
service to get some SCell Component informationCopyright © 2023. All rights reserved.