Package io.keikai.api.impl
Class ImporterImpl
- java.lang.Object
-
- io.keikai.api.impl.ImporterImpl
-
- All Implemented Interfaces:
Importer,java.io.Serializable
public class ImporterImpl extends java.lang.Object implements Importer, java.io.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(java.io.File file, java.lang.String bookName)Import book from a fileBookimports(java.io.File file, java.lang.String bookName, PostImport postImport)Import book from a fileBookimports(java.io.InputStream is, java.lang.String bookName)Import book from a input streamBookimports(java.io.InputStream is, java.lang.String bookName, PostImport postImport)Import book from a input streamBookimports(java.net.URL url, java.lang.String bookName)Import book from a URLBookimports(java.net.URL url, java.lang.String bookName, PostImport postImport)Import book from a URL
-
-
-
Constructor Detail
-
ImporterImpl
public ImporterImpl(SImporter importer)
-
-
Method Detail
-
imports
public Book imports(java.io.InputStream is, java.lang.String bookName) throws java.io.IOException
Description copied from interface:ImporterImport book from a input stream
-
imports
public Book imports(java.io.InputStream is, java.lang.String bookName, PostImport postImport) throws java.io.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:
java.io.IOException- See Also:
PostImport
-
getNative
public SImporter getNative()
-
imports
public Book imports(java.io.File file, java.lang.String bookName) throws java.io.IOException
Description copied from interface:ImporterImport book from a file
-
imports
public Book imports(java.io.File file, java.lang.String bookName, PostImport postImport) throws java.io.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:
java.io.IOException- See Also:
PostImport
-
imports
public Book imports(java.net.URL url, java.lang.String bookName) throws java.io.IOException
Description copied from interface:ImporterImport book from a URL
-
imports
public Book imports(java.net.URL url, java.lang.String bookName, PostImport postImport) throws java.io.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:
java.io.IOException- See Also:
PostImport
-
-