Class AbstractExporter

  • All Implemented Interfaces:
    SExporter, java.io.Serializable
    Direct Known Subclasses:
    AbstractExcelExporter

    public abstract class AbstractExporter
    extends java.lang.Object
    implements SExporter, java.io.Serializable
    Defines common behaviors for an exporter.
    Since:
    3.5.0
    Author:
    dennis
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void export​(SBook book, java.io.File file)
      Export a book
      void export​(SheetRegion sheetRegion, java.io.OutputStream fos)  
      void export​(SSheet sheet, java.io.OutputStream fos)  
      • Methods inherited from class java.lang.Object

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

      • AbstractExporter

        public AbstractExporter()
    • Method Detail

      • export

        public void export​(SBook book,
                           java.io.File file)
                    throws java.io.IOException
        Description copied from interface: SExporter
        Export a book
        Specified by:
        export in interface SExporter
        Parameters:
        book - the book to export
        file - the output file to store data
        Throws:
        java.io.IOException
      • export

        public void export​(SSheet sheet,
                           java.io.OutputStream fos)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • export

        public void export​(SheetRegion sheetRegion,
                           java.io.OutputStream fos)
                    throws java.io.IOException
        Throws:
        java.io.IOException