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:
  • Constructor Details

    • ImporterImpl

      public ImporterImpl(SImporter importer)
  • Method Details

    • 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 interface Importer
      Parameters:
      is - the input stream
      bookName - 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 interface Importer
      Parameters:
      is - the input stream
      bookName - the book name for imported book
      postImport - Object to do post processing after book is imported.
      Returns:
      the book instance
      Throws:
      IOException
      See Also:
    • 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 interface Importer
      Parameters:
      file - the file
      bookName - 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 interface Importer
      Parameters:
      file - the file
      bookName - the book name for imported book
      postImport - Object to do post processing after book is imported.
      Returns:
      the book instance
      Throws:
      IOException
      See Also:
    • imports

      public Book imports(URL url, String bookName) throws IOException
      Description copied from interface: Importer
      Import book from a URL
      Specified by:
      imports in interface Importer
      Parameters:
      url - the url
      bookName - 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 interface Importer
      Parameters:
      url - the url
      bookName - the book name for imported book
      postImport - Object to do post processing after book is imported.
      Returns:
      the book instance
      Throws:
      IOException
      See Also: