Exporter exit

Interface used to implement an AIS exporter.

Classes that implement this interface must be annotated with the org.springframework.stereotype.Component annotation.

The Exporter interface provides a method that exports the results of a query into a file.

/**
* Interface used to implement an AIS exporter.
*/
public interface Exporter
{      
       /**
       * 
        * @param table The table selected for exporting
       * @param stream The stream in which the exporter should write data.
       */
       void export(ExportTable table, OutputStream stream);
}
Argument Content
table Table selected for exporting that contains the results of a query.
stream Stream in which the exporter should write data.

See the javadoc documentation for the ExportTable interface for information on how to access the exporting information.

Note   When implementing the Exporter exit interface, comment-out the line <context:component-scan base-package="com.axway.ais.dsclient.exporter"/> in the file <DatastoreClientInstallDir>\war\WEB-INF\classes\publicApplicationContext.xml and restart the web server.

Related Links