Package io.keikai.api
Interface Importer
-
- All Known Implementing Classes:
ImporterImpl
public interface ImporterImporter that loads an Excel file and returns aBook.- Since:
- 3.0.0
- Author:
- dennis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Bookimports(File file, String bookName)Import book from a fileBookimports(File file, String bookName, PostImport postImport)Import book from a fileBookimports(InputStream is, String bookName)Import book from a input streamBookimports(InputStream is, String bookName, PostImport postImport)Import book from a input streamBookimports(URL url, String bookName)Import book from a URLBookimports(URL url, String bookName, PostImport postImport)Import book from a URL
-
-
-
Method Detail
-
imports
Book imports(InputStream is, String bookName) throws IOException
Import book from a input stream- Parameters:
is- the input streambookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
Book imports(File file, String bookName) throws IOException
Import book from a file- Parameters:
file- the filebookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
Book imports(URL url, String bookName) throws IOException
Import book from a URL- Parameters:
url- the urlbookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
Book imports(InputStream is, String bookName, PostImport postImport) throws IOException
Import book from a input stream- Parameters:
is- the input streambookName- the book name for imported bookpostImport- Object to do post processing after book is imported.- Returns:
- the book instance
- Throws:
IOException- Since:
- 3.9.1
- See Also:
PostImport
-
imports
Book imports(File file, String bookName, PostImport postImport) throws IOException
Import book from a file- Parameters:
file- the filebookName- the book name for imported bookpostImport- Object to do post processing after book is imported.- Returns:
- the book instance
- Throws:
IOException- Since:
- 3.9.1
- See Also:
PostImport
-
imports
Book imports(URL url, String bookName, PostImport postImport) throws IOException
Import book from a URL- Parameters:
url- the urlbookName- the book name for imported bookpostImport- Object to do post processing after book is imported.- Returns:
- the book instance
- Throws:
IOException- Since:
- 3.9.1
- See Also:
PostImport
-
-