Class AbstractDumpHandler
java.lang.Object
de.hybris.platform.impex.jalo.imp.AbstractDumpHandler
- All Implemented Interfaces:
DumpHandler
- Direct Known Subclasses:
CronJobDumpHandler,DefaultDumpHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the current dump as file.Gets the current dump as media object.Gets the current dump as text.Gets a reader object to the last dump storage.Gets a writer object to the current dump storage.protected voidsetReaderOfLastDump(CSVReader reader) Sets a new reader object for 'last' dump.protected voidsetWriterOfCurrentDump(CSVWriter writer) Sets a new writer object for 'current' dump.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.impex.jalo.imp.DumpHandler
finish, init, switchDump
-
Constructor Details
-
AbstractDumpHandler
public AbstractDumpHandler()
-
-
Method Details
-
getReaderOfLastDump
Description copied from interface:DumpHandlerGets a reader object to the last dump storage.- Specified by:
getReaderOfLastDumpin interfaceDumpHandler- Returns:
- reader to last dump storage
-
getWriterOfCurrentDump
Description copied from interface:DumpHandlerGets a writer object to the current dump storage.- Specified by:
getWriterOfCurrentDumpin interfaceDumpHandler- Returns:
- writer to current dump storage
-
setWriterOfCurrentDump
Sets a new writer object for 'current' dump.- Parameters:
writer- new writer
-
setReaderOfLastDump
Sets a new reader object for 'last' dump.- Parameters:
reader- new reader
-
getDumpAsFile
Description copied from interface:DumpHandlerGets the current dump as file.- Specified by:
getDumpAsFilein interfaceDumpHandler- Returns:
- current dump as file
-
getDumpAsMedia
Description copied from interface:DumpHandlerGets the current dump as media object.- Specified by:
getDumpAsMediain interfaceDumpHandler- Returns:
- current dump as media
-
getDumpAsString
Description copied from interface:DumpHandlerGets the current dump as text.- Specified by:
getDumpAsStringin interfaceDumpHandler- Returns:
- current dump as text
-