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
public abstract class AbstractImporter extends Object implements SImporter
- Since:
- 3.5.0
- Author:
- Hawk
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_importCache
static String
BOOK_TYPE_KEY
book type key for book attribute
-
Constructor Summary
Constructors Constructor Description AbstractImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SBook
imports(File file, String bookName)
Import book from a fileSBook
imports(URL url, String bookName)
Import book from a URLprotected boolean
isImportCache()
Returns if import file cached value.void
setImportCache(boolean b)
Set if import Excel cached value.
-
-
-
Field Detail
-
BOOK_TYPE_KEY
public static String BOOK_TYPE_KEY
book type key for book attribute
-
_importCache
protected boolean _importCache
-
-
Method Detail
-
imports
public SBook imports(File file, String bookName) throws IOException
Description copied from interface:SImporter
Import book from a file- Specified by:
imports
in interfaceSImporter
- Parameters:
file
- the filebookName
- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
public SBook imports(URL url, String bookName) throws IOException
Description copied from interface:SImporter
Import book from a URL- Specified by:
imports
in 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
-
-