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 SImportergetNative()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
-
-
-
Constructor Detail
-
ImporterImpl
public ImporterImpl(SImporter importer)
-
-
Method Detail
-
imports
public Book imports(InputStream is, String bookName) throws IOException
Description copied from interface:ImporterImport book from a input stream- Specified by:
importsin 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:ImporterImport book from a input stream- Specified by:
importsin 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:ImporterImport book from a file- Specified by:
importsin 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:ImporterImport book from a file- Specified by:
importsin 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:ImporterImport book from a URL- Specified by:
importsin 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:ImporterImport book from a URL- Specified by:
importsin 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
-
-