Class AbstractDumpHandler

java.lang.Object
de.hybris.platform.impex.jalo.imp.AbstractDumpHandler
All Implemented Interfaces:
DumpHandler
Direct Known Subclasses:
CronJobDumpHandler, DefaultDumpHandler

public abstract class AbstractDumpHandler extends 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 Details

    • AbstractDumpHandler

      public AbstractDumpHandler()
  • Method Details

    • 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 File getDumpAsFile()
      Description copied from interface: DumpHandler
      Gets the current dump as file.
      Specified by:
      getDumpAsFile in interface DumpHandler
      Returns:
      current dump as file
    • getDumpAsMedia

      public ImpExMedia getDumpAsMedia()
      Description copied from interface: DumpHandler
      Gets the current dump as media object.
      Specified by:
      getDumpAsMedia in interface DumpHandler
      Returns:
      current dump as media
    • getDumpAsString

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