Class AbstractImporter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean _importCache  
      static java.lang.String BOOK_TYPE_KEY
      book type key for book attribute
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SBook imports​(java.io.File file, java.lang.String bookName)
      Import book from a file
      SBook imports​(java.net.URL url, java.lang.String bookName)
      Import book from a URL
      protected boolean isImportCache()
      Returns if import file cached value.
      void setImportCache​(boolean b)
      Set if import Excel cached value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BOOK_TYPE_KEY

        public static java.lang.String BOOK_TYPE_KEY
        book type key for book attribute
      • _importCache

        protected boolean _importCache
    • Constructor Detail

      • AbstractImporter

        public AbstractImporter()
    • Method Detail

      • imports

        public SBook imports​(java.io.File file,
                             java.lang.String bookName)
                      throws java.io.IOException
        Description copied from interface: SImporter
        Import book from a file
        Specified by:
        imports in interface SImporter
        Parameters:
        file - the file
        bookName - the book name for imported book
        Returns:
        the book instance
        Throws:
        java.io.IOException
      • imports

        public SBook imports​(java.net.URL url,
                             java.lang.String bookName)
                      throws java.io.IOException
        Description copied from interface: SImporter
        Import book from a URL
        Specified by:
        imports in interface SImporter
        Parameters:
        url - the url
        bookName - the book name for imported book
        Returns:
        the book instance
        Throws:
        java.io.IOException
      • setImportCache

        public void setImportCache​(boolean b)
        Set if import Excel cached value.
        Since:
        3.7.0
      • isImportCache

        protected boolean isImportCache()
        Returns if import file cached value.
        Since:
        3.7.0