public class DefaultSaxEntitiesExporter extends Object implements EntitiesExporter
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
static int |
DEFAULT_FETCH_SIZE |
| Constructor and Description |
|---|
DefaultSaxEntitiesExporter(OfBizDelegator delegator,
ApplicationProperties applicationProperties,
BuildUtilsInfo buildUtilsInfo) |
DefaultSaxEntitiesExporter(OfBizDelegator delegator,
ApplicationProperties applicationProperties,
BuildUtilsInfo buildUtilsInfo,
DatabaseConfigurationManager databaseConfigurationManager) |
| Modifier and Type | Method and Description |
|---|---|
long |
exportEntities(OutputStream outputStream,
SortedSet<String> entityNames,
EntityXmlWriter entityWriter,
ApplicationUser exportingUser)
Exports the entities in the TreeSet to the outputStream.
|
protected PrintWriter |
getWriter(OutputStream outputStream) |
protected void |
writeFooter(PrintWriter printWriter,
com.atlassian.jira.action.admin.export.DefaultSaxEntitiesExporter.EntityCounter entityCounter)
This closes out the XML documment.
|
protected void |
writeHeader(PrintWriter printWriter,
ApplicationUser exportingUser)
This will write the start of the exported XML file out.
|
public static final int DEFAULT_BUFFER_SIZE
public static final int DEFAULT_FETCH_SIZE
public DefaultSaxEntitiesExporter(OfBizDelegator delegator, ApplicationProperties applicationProperties, BuildUtilsInfo buildUtilsInfo)
public DefaultSaxEntitiesExporter(OfBizDelegator delegator, ApplicationProperties applicationProperties, BuildUtilsInfo buildUtilsInfo, DatabaseConfigurationManager databaseConfigurationManager)
public long exportEntities(OutputStream outputStream, SortedSet<String> entityNames, EntityXmlWriter entityWriter, ApplicationUser exportingUser) throws IOException, org.ofbiz.core.entity.GenericEntityException
EntitiesExporterexportEntities in interface EntitiesExporteroutputStream - - the stream to write toentityNames - - the entities names to write outentityWriter - - an XML output helper that can write generic values to XMLexportingUser - - the user performing the export operationIOExceptionorg.ofbiz.core.entity.GenericEntityExceptionprotected PrintWriter getWriter(OutputStream outputStream) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected void writeFooter(PrintWriter printWriter, com.atlassian.jira.action.admin.export.DefaultSaxEntitiesExporter.EntityCounter entityCounter)
printWriter - a PrintWriter to write toentityCounter - a count of entities writtenprotected void writeHeader(PrintWriter printWriter, ApplicationUser exportingUser)
printWriter - a PrintWriter to write toexportingUser - the user doing the exportCopyright © 2002-2019 Atlassian. All Rights Reserved.