Class ALcdXMLModelEncoder

java.lang.Object
com.luciad.format.xml.bind.schema.ALcdXMLModelEncoder
All Implemented Interfaces:
ILcdOutputStreamFactoryCapable, ILcdModelEncoder, Serializable
Direct Known Subclasses:
TLcdAIXM51ModelEncoder, TLcdGML2ModelEncoder, TLcdGML31ModelEncoder, TLcdGML32ModelEncoder, TLcdNVG15ModelEncoder, TLcdNVG20ModelEncoder

public abstract class ALcdXMLModelEncoder extends Object implements ILcdModelEncoder, ILcdOutputStreamFactoryCapable
This abstract class provides additional methods for a ILcdModelEncoder to encode models into XML schema based documents.
Since:
10.0
See Also:
  • Constructor Details

    • ALcdXMLModelEncoder

      public ALcdXMLModelEncoder()
  • Method Details

    • getOutputStreamFactory

      public abstract ILcdOutputStreamFactory getOutputStreamFactory()
      Returns the ILcdOutputStreamFactory that is used for creating output streams.
      Specified by:
      getOutputStreamFactory in interface ILcdOutputStreamFactoryCapable
      Returns:
      the ILcdOutputStreamFactory that is used for creating output streams.
      See Also:
    • setOutputStreamFactory

      public abstract void setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
      Sets the ILcdOutputStreamFactory to be used for creating output streams. This output stream factory is used for output streams for both the data files and the XSD schemas.
      Specified by:
      setOutputStreamFactory in interface ILcdOutputStreamFactoryCapable
      Parameters:
      aOutputStreamFactory - the output stream factory to be used by this model encoder.
      See Also:
    • getXMLOutputFactory

      public abstract XMLOutputFactory getXMLOutputFactory()
      Returns the javax.xml.stream.XMLOutputFactory that is used by this encoder for creating javax.xml.stream.XMLStreamWriter instances.
      Returns:
      the javax.xml.stream.XMLOutputFactory that is used by this encoder for creating javax.xml.stream.XMLStreamWriter instances.
    • setXMLOutputFactory

      public abstract void setXMLOutputFactory(XMLOutputFactory aXMLOutputFactory)
      Sets the javax.xml.stream.XMLOutputFactory to be used by this encoder for creating javax.xml.stream.XMLStreamWriter instances.
      Parameters:
      aXMLOutputFactory - the javax.xml.stream.XMLOutputFactory to be used by this encoder for creating javax.xml.stream.XMLStreamWriter instances.
    • getEntityResolver

      public abstract EntityResolver2 getEntityResolver()
      Returns the org.xml.sax.ext.EntityResolver2 that is used for creating input sources for XSD schemas.
      Returns:
      the entity resolver to be used for creating input sources for XSD schemas.
    • setEntityResolver

      public abstract void setEntityResolver(EntityResolver2 aEntityResolver)
      Sets the org.xml.sax.ext.EntityResolver2 to be used for creating input sources for XSD schemas. This entity resolver is only used for retrieving runtime extension schemas.
      Parameters:
      aEntityResolver - the entity resolver to be used for creating input sources for XSD schemas.
    • export

      public void export(ILcdModel aModel, Result aDestination) throws IOException

      Exports the given model to a destination result.

      Note that the default implementation throws UnsupportedOperationException. Extensions from this class should provide a more appropriate implementation.

      Parameters:
      aModel - the model to export
      aDestination - the destination
      Throws:
      IOException - if an I/O error occurs during encoding.
      UnsupportedOperationException - in case the encoder is not able to write to the given result
      See Also: