Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SImporter getNative()  
      Book imports​(java.io.File file, java.lang.String bookName)
      Import book from a file
      Book imports​(java.io.File file, java.lang.String bookName, PostImport postImport)
      Import book from a file
      Book imports​(java.io.InputStream is, java.lang.String bookName)
      Import book from a input stream
      Book imports​(java.io.InputStream is, java.lang.String bookName, PostImport postImport)
      Import book from a input stream
      Book imports​(java.net.URL url, java.lang.String bookName)
      Import book from a URL
      Book imports​(java.net.URL url, java.lang.String bookName, PostImport postImport)
      Import book from a URL
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: 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:
        java.io.IOException
      • imports

        public Book imports​(java.io.InputStream is,
                            java.lang.String bookName,
                            PostImport postImport)
                     throws java.io.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:
        java.io.IOException
        See Also:
        PostImport
      • imports

        public Book imports​(java.io.File file,
                            java.lang.String bookName)
                     throws java.io.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:
        java.io.IOException
      • imports

        public Book imports​(java.io.File file,
                            java.lang.String bookName,
                            PostImport postImport)
                     throws java.io.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:
        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: 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:
        java.io.IOException
      • imports

        public Book imports​(java.net.URL url,
                            java.lang.String bookName,
                            PostImport postImport)
                     throws java.io.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:
        java.io.IOException
        See Also:
        PostImport