Package io.keikai.api
Interface Importer
-
- All Known Implementing Classes:
ImporterImpl
public interface Importer
Importer 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 Book
imports(File file, String bookName)
Import book from a fileBook
imports(File file, String bookName, PostImport postImport)
Import book from a fileBook
imports(InputStream is, String bookName)
Import book from a input streamBook
imports(InputStream is, String bookName, PostImport postImport)
Import book from a input streamBook
imports(URL url, String bookName)
Import book from a URLBook
imports(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
-
-