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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExports the given model to a destination result.abstract EntityResolver2Returns theorg.xml.sax.ext.EntityResolver2that is used for creating input sources for XSD schemas.abstract ILcdOutputStreamFactoryReturns theILcdOutputStreamFactorythat is used for creating output streams.abstract XMLOutputFactoryReturns thejavax.xml.stream.XMLOutputFactorythat is used by this encoder for creatingjavax.xml.stream.XMLStreamWriterinstances.abstract voidsetEntityResolver(EntityResolver2 aEntityResolver) Sets theorg.xml.sax.ext.EntityResolver2to be used for creating input sources for XSD schemas.abstract voidsetOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory) Sets theILcdOutputStreamFactoryto be used for creating output streams.abstract voidsetXMLOutputFactory(XMLOutputFactory aXMLOutputFactory) Sets thejavax.xml.stream.XMLOutputFactoryto be used by this encoder for creatingjavax.xml.stream.XMLStreamWriterinstances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.model.ILcdModelEncoder
canExport, canSave, export, getDisplayName, save
-
Constructor Details
-
ALcdXMLModelEncoder
public ALcdXMLModelEncoder()
-
-
Method Details
-
getOutputStreamFactory
Returns theILcdOutputStreamFactorythat is used for creating output streams.- Specified by:
getOutputStreamFactoryin interfaceILcdOutputStreamFactoryCapable- Returns:
- the
ILcdOutputStreamFactorythat is used for creating output streams. - See Also:
-
setOutputStreamFactory
Sets theILcdOutputStreamFactoryto 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:
setOutputStreamFactoryin interfaceILcdOutputStreamFactoryCapable- Parameters:
aOutputStreamFactory- the output stream factory to be used by this model encoder.- See Also:
-
getXMLOutputFactory
Returns thejavax.xml.stream.XMLOutputFactorythat is used by this encoder for creatingjavax.xml.stream.XMLStreamWriterinstances.- Returns:
- the
javax.xml.stream.XMLOutputFactorythat is used by this encoder for creatingjavax.xml.stream.XMLStreamWriterinstances.
-
setXMLOutputFactory
Sets thejavax.xml.stream.XMLOutputFactoryto be used by this encoder for creatingjavax.xml.stream.XMLStreamWriterinstances.- Parameters:
aXMLOutputFactory- thejavax.xml.stream.XMLOutputFactoryto be used by this encoder for creatingjavax.xml.stream.XMLStreamWriterinstances.
-
getEntityResolver
Returns theorg.xml.sax.ext.EntityResolver2that is used for creating input sources for XSD schemas.- Returns:
- the entity resolver to be used for creating input sources for XSD schemas.
-
setEntityResolver
Sets theorg.xml.sax.ext.EntityResolver2to 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
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 exportaDestination- 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:
-