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 java.lang.Object implements DumpHandler
Abstract implementation ofDumpHandlerinterface 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 Constructor Description AbstractDumpHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetDumpAsFile()Gets the current dump as file.ImpExMediagetDumpAsMedia()Gets the current dump as media object.java.lang.StringgetDumpAsString()Gets the current dump as text.CSVReadergetReaderOfLastDump()Gets a reader object to the last dump storage.CSVWritergetWriterOfCurrentDump()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, wait
-
Methods inherited from interface de.hybris.platform.impex.jalo.imp.DumpHandler
finish, init, switchDump
-
-
-
-
Method Detail
-
getReaderOfLastDump
public CSVReader 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
public CSVWriter 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
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:DumpHandlerGets the current dump as file.- Specified by:
getDumpAsFilein interfaceDumpHandler- Returns:
- current dump as file
-
getDumpAsMedia
public ImpExMedia getDumpAsMedia()
Description copied from interface:DumpHandlerGets the current dump as media object.- Specified by:
getDumpAsMediain interfaceDumpHandler- Returns:
- current dump as media
-
getDumpAsString
public java.lang.String getDumpAsString()
Description copied from interface:DumpHandlerGets the current dump as text.- Specified by:
getDumpAsStringin interfaceDumpHandler- Returns:
- current dump as text
-
-