public class ImporterImpl extends Object implements Importer, Serializable
Constructor and Description |
---|
ImporterImpl(SImporter importer) |
Modifier and Type | Method and Description |
---|---|
SImporter |
getNative() |
Book |
imports(File file,
String bookName)
Import book from a file
|
Book |
imports(File file,
String bookName,
PostImport postImport)
Import book from a file
|
Book |
imports(InputStream is,
String bookName)
Import book from a input stream
|
Book |
imports(InputStream is,
String bookName,
PostImport postImport)
Import book from a input stream
|
Book |
imports(URL url,
String bookName)
Import book from a URL
|
Book |
imports(URL url,
String bookName,
PostImport postImport)
Import book from a URL
|
public ImporterImpl(SImporter importer)
public Book imports(InputStream is, String bookName) throws IOException
Importer
imports
in interface Importer
is
- the input streambookName
- the book name for imported bookIOException
public Book imports(InputStream is, String bookName, PostImport postImport) throws IOException
Importer
imports
in interface Importer
is
- the input streambookName
- the book name for imported bookpostImport
- Object to do post processing after book is imported.IOException
PostImport
public SImporter getNative()
public Book imports(File file, String bookName) throws IOException
Importer
imports
in interface Importer
file
- the filebookName
- the book name for imported bookIOException
public Book imports(File file, String bookName, PostImport postImport) throws IOException
Importer
imports
in interface Importer
file
- the filebookName
- the book name for imported bookpostImport
- Object to do post processing after book is imported.IOException
PostImport
public Book imports(URL url, String bookName) throws IOException
Importer
imports
in interface Importer
url
- the urlbookName
- the book name for imported bookIOException
public Book imports(URL url, String bookName, PostImport postImport) throws IOException
Importer
imports
in interface Importer
url
- the urlbookName
- the book name for imported bookpostImport
- Object to do post processing after book is imported.IOException
PostImport
Copyright © 2020. All rights reserved.