Interface Importer


  • public interface Importer
    An interface to import file to a DocumentModel.
    Author:
    Jamson Chan
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.keikai.doc.api.DocumentModel imports​(java.io.File file)
      Import a file to a DocumentModel.
      io.keikai.doc.api.DocumentModel imports​(java.io.InputStream is)
      Import a file to a DocumentModel.
      io.keikai.doc.api.DocumentModel imports​(java.net.URL url)
      Import a file to a DocumentModel.
    • Method Detail

      • imports

        io.keikai.doc.api.DocumentModel imports​(java.io.InputStream is)
                                         throws java.io.IOException
        Import a file to a DocumentModel.
        Parameters:
        is - the InputStream of the file to be imported
        Returns:
        the imported DocumentModel
        Throws:
        java.io.IOException - if an I/O error occurs
      • imports

        io.keikai.doc.api.DocumentModel imports​(java.io.File file)
                                         throws java.io.IOException
        Import a file to a DocumentModel.
        Parameters:
        file - the File to be imported
        Returns:
        the imported DocumentModel
        Throws:
        java.io.IOException - if an I/O error occurs
      • imports

        io.keikai.doc.api.DocumentModel imports​(java.net.URL url)
                                         throws java.io.IOException
        Import a file to a DocumentModel.
        Parameters:
        url - the URL of the file to be imported
        Returns:
        the imported DocumentModel
        Throws:
        java.io.IOException - if an I/O error occurs