Package io.keikai.api
Interface Importer
- All Known Implementing Classes:
ImporterImpl
public interface Importer
Importer that loads an Excel file and returns a
Book.- Since:
- 3.0.0
- Author:
- dennis
-
Method Summary
Modifier and TypeMethodDescriptionImport book from a fileimports(File file, String bookName, PostImport postImport) Import book from a fileimports(InputStream is, String bookName) Import book from a input streamimports(InputStream is, String bookName, PostImport postImport) Import book from a input streamImport book from a URLimports(URL url, String bookName, PostImport postImport) Import book from a URL
-
Method Details
-
imports
Import book from a input stream- Parameters:
is- the input streambookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
Import book from a file- Parameters:
file- the filebookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
Import book from a URL- Parameters:
url- the urlbookName- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
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:
-
imports
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:
-
imports
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:
-