Class ImporterImpl

    • Constructor Detail

      • ImporterImpl

        public ImporterImpl​(SImporter importer)
    • Method Detail

      • 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:
        PostImport
      • 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:
        PostImport
      • 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:
        PostImport