Package com.luciad.wms.sld.xml
Class TLcdSLDStyledLayerDescriptorEncoder
java.lang.Object
com.luciad.wms.sld.xml.TLcdSLDStyledLayerDescriptorEncoder
- All Implemented Interfaces:
ILcdOutputStreamFactoryCapable
public class TLcdSLDStyledLayerDescriptorEncoder
extends Object
implements ILcdOutputStreamFactoryCapable
Encoder to encoder
TLcdSLDStyledLayerDescriptor objects to XML documents according to
version 1.0.0 and 1.1.0 of the OGC Styled Layer Descriptor / Symbology Encoding
Implementation Specification.
The 'version' attribute of the TLcdSLDStyledLayerDescriptor is used to determine the version
of the encoding. If no version is set, the version will be 1.0.0. Properties that are not
supported by the given version will be omitted from the XML encoding.
- Since:
- 6.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeStyledLayerDescriptor(TLcdSLDStyledLayerDescriptor aStyledLayerDescriptor, String aSourceName) Encodes the given feature type style to the given destination.Returns the output stream factory that is currently used for creating output streams given source names.voidsetOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory) Sets the output stream factory that will be used for creating output streams given source names.
-
Constructor Details
-
TLcdSLDStyledLayerDescriptorEncoder
public TLcdSLDStyledLayerDescriptorEncoder()Creates a new encoder.
-
-
Method Details
-
setOutputStreamFactory
Sets the output stream factory that will be used for creating output streams given source names.- Specified by:
setOutputStreamFactoryin interfaceILcdOutputStreamFactoryCapable- Parameters:
aOutputStreamFactory- the output stream factory to be used.
-
getOutputStreamFactory
Returns the output stream factory that is currently used for creating output streams given source names.- Specified by:
getOutputStreamFactoryin interfaceILcdOutputStreamFactoryCapable- Returns:
- the input stream factory that is currently used.
-
encodeStyledLayerDescriptor
public void encodeStyledLayerDescriptor(TLcdSLDStyledLayerDescriptor aStyledLayerDescriptor, String aSourceName) throws IOException Encodes the given feature type style to the given destination.- Parameters:
aStyledLayerDescriptor- the given feature type style.aSourceName- the full path to the source where the object should be written.- Throws:
IOException- thrown if an error occurs during the write process.
-