public class TLcdSLDStyledLayerDescriptorEncoder extends Object implements ILcdOutputStreamFactoryCapable
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.
ALcdSLDStyledLayerDescriptor.getVersion()
Constructor and Description |
---|
TLcdSLDStyledLayerDescriptorEncoder()
Creates a new encoder.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeStyledLayerDescriptor(TLcdSLDStyledLayerDescriptor aStyledLayerDescriptor,
String aSourceName)
Encodes the given feature type style to the given destination.
|
ILcdOutputStreamFactory |
getOutputStreamFactory()
Returns the output stream factory that is currently used for creating output streams given
source names.
|
void |
setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
Sets the output stream factory that will be used for creating output streams given source
names.
|
public TLcdSLDStyledLayerDescriptorEncoder()
public void setOutputStreamFactory(ILcdOutputStreamFactory aOutputStreamFactory)
setOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
aOutputStreamFactory
- the output stream factory to be used.public ILcdOutputStreamFactory getOutputStreamFactory()
getOutputStreamFactory
in interface ILcdOutputStreamFactoryCapable
public void encodeStyledLayerDescriptor(TLcdSLDStyledLayerDescriptor aStyledLayerDescriptor, String aSourceName) throws IOException
aStyledLayerDescriptor
- the given feature type style.aSourceName
- the full path to the source where the object should be written.IOException
- thrown if an error occurs during the write process.