Class AbstractDumpHandler

  • All Implemented Interfaces:
    DumpHandler
    Direct Known Subclasses:
    CronJobDumpHandler, DefaultDumpHandler

    public abstract class AbstractDumpHandler
    extends java.lang.Object
    implements DumpHandler
    Abstract implementation of DumpHandler interface which provides references for a reader and a writer object for last and current dump storage. Further extension do not have to hold them.
    • Constructor Detail

      • AbstractDumpHandler

        public AbstractDumpHandler()
    • Method Detail

      • getReaderOfLastDump

        public CSVReader getReaderOfLastDump()
        Description copied from interface: DumpHandler
        Gets a reader object to the last dump storage.
        Specified by:
        getReaderOfLastDump in interface DumpHandler
        Returns:
        reader to last dump storage
      • getWriterOfCurrentDump

        public CSVWriter getWriterOfCurrentDump()
        Description copied from interface: DumpHandler
        Gets a writer object to the current dump storage.
        Specified by:
        getWriterOfCurrentDump in interface DumpHandler
        Returns:
        writer to current dump storage
      • setWriterOfCurrentDump

        protected void setWriterOfCurrentDump​(CSVWriter writer)
        Sets a new writer object for 'current' dump.
        Parameters:
        writer - new writer
      • setReaderOfLastDump

        protected void setReaderOfLastDump​(CSVReader reader)
        Sets a new reader object for 'last' dump.
        Parameters:
        reader - new reader
      • getDumpAsFile

        public java.io.File getDumpAsFile()
        Description copied from interface: DumpHandler
        Gets the current dump as file.
        Specified by:
        getDumpAsFile in interface DumpHandler
        Returns:
        current dump as file
      • getDumpAsString

        public java.lang.String getDumpAsString()
        Description copied from interface: DumpHandler
        Gets the current dump as text.
        Specified by:
        getDumpAsString in interface DumpHandler
        Returns:
        current dump as text