com.atlassian.jira.action.admin.export
Class DefaultSaxEntityExporter

java.lang.Object
  extended bycom.atlassian.jira.action.admin.export.DefaultSaxEntityExporter
All Implemented Interfaces:
EntityExporter

public class DefaultSaxEntityExporter
extends Object
implements EntityExporter


Field Summary
protected  ApplicationProperties applicationProperties
           
protected  org.ofbiz.core.entity.GenericDelegator delegator
           
protected static String NL
           
 
Constructor Summary
DefaultSaxEntityExporter(org.ofbiz.core.entity.GenericDelegator delegator, ApplicationProperties applicationProperties)
           
 
Method Summary
 long exportEntities(OutputStream outputStream, TreeSet entityNames)
           
protected  PrintWriter getWriter(OutputStream outputStream)
           
protected  void writeFooter(PrintWriter printWriter)
           
protected  void writeHeader(PrintWriter printWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NL

protected static final String NL

delegator

protected final org.ofbiz.core.entity.GenericDelegator delegator

applicationProperties

protected final ApplicationProperties applicationProperties
Constructor Detail

DefaultSaxEntityExporter

public DefaultSaxEntityExporter(org.ofbiz.core.entity.GenericDelegator delegator,
                                ApplicationProperties applicationProperties)
Method Detail

exportEntities

public long exportEntities(OutputStream outputStream,
                           TreeSet entityNames)
                    throws IOException,
                           org.ofbiz.core.entity.GenericEntityException
Specified by:
exportEntities in interface EntityExporter
Returns:
the number of individual entities written
Throws:
IOException
org.ofbiz.core.entity.GenericEntityException

getWriter

protected PrintWriter getWriter(OutputStream outputStream)
                         throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

writeFooter

protected void writeFooter(PrintWriter printWriter)

writeHeader

protected void writeHeader(PrintWriter printWriter)


Copyright © 2002-2006 Atlassian. All Rights Reserved.