Package io.keikai.api.impl
Class ImporterImpl
- java.lang.Object
-
- io.keikai.api.impl.ImporterImpl
-
- All Implemented Interfaces:
Importer
,Serializable
public class ImporterImpl extends Object implements Importer, Serializable
- Since:
- 3.0.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImporterImpl(SImporter importer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SImporter
getNative()
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
-
-
-
Constructor Detail
-
ImporterImpl
public ImporterImpl(SImporter importer)
-
-
Method Detail
-
imports
public Book imports(InputStream is, String bookName) throws IOException
Description copied from interface:Importer
Import book from a input stream- Specified by:
imports
in interfaceImporter
- Parameters:
is
- the input streambookName
- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
public Book imports(InputStream is, String bookName, PostImport postImport) throws IOException
Description copied from interface:Importer
Import book from a input stream- Specified by:
imports
in interfaceImporter
- 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
- See Also:
PostImport
-
getNative
public SImporter getNative()
-
imports
public Book imports(File file, String bookName) throws IOException
Description copied from interface:Importer
Import book from a file- Specified by:
imports
in interfaceImporter
- Parameters:
file
- the filebookName
- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
public Book imports(File file, String bookName, PostImport postImport) throws IOException
Description copied from interface:Importer
Import book from a file- Specified by:
imports
in interfaceImporter
- 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
- See Also:
PostImport
-
imports
public Book imports(URL url, String bookName) throws IOException
Description copied from interface:Importer
Import book from a URL- Specified by:
imports
in interfaceImporter
- Parameters:
url
- the urlbookName
- the book name for imported book- Returns:
- the book instance
- Throws:
IOException
-
imports
public Book imports(URL url, String bookName, PostImport postImport) throws IOException
Description copied from interface:Importer
Import book from a URL- Specified by:
imports
in interfaceImporter
- 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
- See Also:
PostImport
-
-