public abstract class AbstractImporter extends Object implements SImporter
Modifier and Type | Field and Description |
---|---|
protected boolean |
_importCache |
protected static String |
BOOK_TYPE_KEY
book type key for book attribute
|
Constructor and Description |
---|
AbstractImporter() |
Modifier and Type | Method and Description |
---|---|
SBook |
imports(File file,
String bookName)
Import book from a file
|
SBook |
imports(URL url,
String bookName)
Import book from a URL
|
protected boolean |
isImportCache()
Returns if import file cached value.
|
void |
setImportCache(boolean b)
Set if import Excel cached value.
|
protected static String BOOK_TYPE_KEY
protected boolean _importCache
public SBook imports(File file, String bookName) throws IOException
SImporter
imports
in interface SImporter
file
- the filebookName
- the book name for imported bookIOException
public SBook imports(URL url, String bookName) throws IOException
SImporter
imports
in interface SImporter
url
- the urlbookName
- the book name for imported bookIOException
public void setImportCache(boolean b)
protected boolean isImportCache()
Copyright © 2020. All rights reserved.