Search in sources :

Example 1 with ContainerStart

use of org.opensextant.giscore.events.ContainerStart in project Xponents by OpenSextant.

the class GISDataFormatter method start.

/**
     * Start output.
     */
@Override
public void start(String containerName) throws ProcessingException {
    /**
         * apply default GIS data model
         */
    if (this.gisDataModel == null) {
        setGisDataModel();
    }
    try {
        createOutputStreams();
    } catch (Exception create_err) {
        throw new ProcessingException(create_err);
    }
    DocumentStart ds = new DocumentStart(doc_type);
    this.os.write(ds);
    this.os.write(gisDataModel.getSchema());
    ContainerStart containerStart = new ContainerStart();
    containerStart.setType("Folder");
    containerStart.setName(containerName);
    this.os.write(containerStart);
}
Also used : DocumentStart(org.opensextant.giscore.events.DocumentStart) ContainerStart(org.opensextant.giscore.events.ContainerStart) ConfigException(org.opensextant.ConfigException) ProcessingException(org.opensextant.processing.ProcessingException) ProcessingException(org.opensextant.processing.ProcessingException)

Aggregations

ConfigException (org.opensextant.ConfigException)1 ContainerStart (org.opensextant.giscore.events.ContainerStart)1 DocumentStart (org.opensextant.giscore.events.DocumentStart)1 ProcessingException (org.opensextant.processing.ProcessingException)1