Interface Importer


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

    Modifier and Type
    Method
    Description
    io.keikai.doc.api.DocumentModel
    imports(File file)
    Import a file to a DocumentModel.
    io.keikai.doc.api.DocumentModel
    Import a file to a DocumentModel.
    io.keikai.doc.api.DocumentModel
    imports(URL url)
    Import a file to a DocumentModel.
  • Method Details

    • imports

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

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

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