Package io.keikai.range.impl.imexp
Class AbstractImporter
java.lang.Object
io.keikai.range.impl.imexp.AbstractImporter
- All Implemented Interfaces:
SImporter
- Direct Known Subclasses:
AbstractExcelImporter,ExcelImportAdapter,XlsxImporter
- Since:
- 3.5.0
- Author:
- Hawk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic Stringbook type key for book attribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImport book from a fileImport book from a URLprotected booleanReturns if import file cached value.voidsetImportCache(boolean b) Set if import Excel cached value.
-
Field Details
-
BOOK_TYPE_KEY
book type key for book attribute -
_importCache
protected boolean _importCache
-
-
Constructor Details
-
AbstractImporter
public AbstractImporter()
-
-
Method Details
-
imports
Description copied from interface:SImporterImport book from a file- Specified by:
importsin interfaceSImporter- Parameters:
file- the filebookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
Description copied from interface:SImporterImport book from a URL- Specified by:
importsin interfaceSImporter- Parameters:
url- the urlbookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
setImportCache
public void setImportCache(boolean b) Set if import Excel cached value.- Since:
- 3.7.0
-
isImportCache
protected boolean isImportCache()Returns if import file cached value.- Since:
- 3.7.0
-