Package io.keikai.api

Interface Importer

  • All Known Implementing Classes:
    ImporterImpl

    public interface Importer
    Importer that loads an Excel file and returns a Book.
    Since:
    3.0.0
    Author:
    dennis
    • Method Detail

      • imports

        Book imports​(InputStream is,
                     String bookName)
              throws IOException
        Import book from a input stream
        Parameters:
        is - the input stream
        bookName - the book name for imported book
        Returns:
        the book instance
        Throws:
        IOException
      • imports

        Book imports​(File file,
                     String bookName)
              throws IOException
        Import book from a file
        Parameters:
        file - the file
        bookName - the book name for imported book
        Returns:
        the book instance
        Throws:
        IOException
      • imports

        Book imports​(URL url,
                     String bookName)
              throws IOException
        Import book from a URL
        Parameters:
        url - the url
        bookName - the book name for imported book
        Returns:
        the book instance
        Throws:
        IOException
      • imports

        Book imports​(InputStream is,
                     String bookName,
                     PostImport postImport)
              throws IOException
        Import book from a input stream
        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
        Since:
        3.9.1
        See Also:
        PostImport
      • imports

        Book imports​(File file,
                     String bookName,
                     PostImport postImport)
              throws IOException
        Import book from a file
        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
        Since:
        3.9.1
        See Also:
        PostImport
      • imports

        Book imports​(URL url,
                     String bookName,
                     PostImport postImport)
              throws IOException
        Import book from a URL
        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
        Since:
        3.9.1
        See Also:
        PostImport