Class AbstractExportConverter
- java.lang.Object
-
- de.hybris.platform.impex.jalo.exp.converter.AbstractExportConverter
-
- All Implemented Interfaces:
ExportConverter
,java.lang.AutoCloseable
- Direct Known Subclasses:
AbstractExcelConverter
,DefaultExportResultHandler
public abstract class AbstractExportConverter extends java.lang.Object implements ExportConverter
This class offers a default implementation ofExportConverter
and much more...
-
-
Constructor Summary
Constructors Constructor Description AbstractExportConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes opened filesprotected void
dump()
protected java.lang.StringBuilder
getDataContent(java.io.InputStream is)
java.lang.StringBuilder
getDataContent(java.lang.String name)
java.lang.StringBuilder
getDataContent(java.util.zip.ZipEntry entry)
java.util.List<java.util.zip.ZipEntry>
getDataEntries()
Export
getExport()
java.lang.StringBuilder
getMediasContent(java.lang.String name)
java.lang.StringBuilder
getMediasContent(java.util.zip.ZipEntry entry)
java.util.List<java.util.zip.ZipEntry>
getMediasEntries()
java.util.List<java.util.zip.ZipEntry>
getZipEntries(ImpExMedia media)
java.util.zip.ZipEntry
getZipEntryByName(ImpExMedia media, java.lang.String name)
void
mergeEntries(java.util.Collection<java.util.zip.ZipEntry> entries, java.io.File target)
void
setExport(Export export)
-
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.exp.converter.ExportConverter
getReport, start
-
-
-
-
Method Detail
-
setExport
public void setExport(Export export)
- Specified by:
setExport
in interfaceExportConverter
-
getExport
public Export getExport()
- Specified by:
getExport
in interfaceExportConverter
- Returns:
- container of the exported 'data' and 'medias'
-
close
public void close()
Description copied from interface:ExportConverter
Closes opened files- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceExportConverter
-
getDataEntries
public java.util.List<java.util.zip.ZipEntry> getDataEntries() throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getMediasEntries
public java.util.List<java.util.zip.ZipEntry> getMediasEntries() throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getDataContent
public java.lang.StringBuilder getDataContent(java.lang.String name) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getDataContent
public java.lang.StringBuilder getDataContent(java.util.zip.ZipEntry entry) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getMediasContent
public java.lang.StringBuilder getMediasContent(java.lang.String name) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getMediasContent
public java.lang.StringBuilder getMediasContent(java.util.zip.ZipEntry entry) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getZipEntries
public java.util.List<java.util.zip.ZipEntry> getZipEntries(ImpExMedia media) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getZipEntryByName
public java.util.zip.ZipEntry getZipEntryByName(ImpExMedia media, java.lang.String name) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
getDataContent
protected java.lang.StringBuilder getDataContent(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
mergeEntries
public void mergeEntries(java.util.Collection<java.util.zip.ZipEntry> entries, java.io.File target)
- Parameters:
entries
-target
-
-
dump
protected void dump() throws JaloBusinessException, java.io.IOException
- Throws:
JaloBusinessException
java.io.IOException
-
-