Class TLcdSLDStyledLayerDescriptorDecoder

java.lang.Object
com.luciad.wms.sld.xml.TLcdSLDStyledLayerDescriptorDecoder
All Implemented Interfaces:
ILcdInputStreamFactoryCapable

public class TLcdSLDStyledLayerDescriptorDecoder extends Object implements ILcdInputStreamFactoryCapable
XML Decoder for documents describing Styled Layer Descriptors, structured according to version 1.1 or 1.0 of the OGC Styled Layer Descriptor specification.

Both versions of the standard use the same namespace, hence the decoder relies on the 'version' attribute of the top level element to determine the correct version. If no version attribute is set, it will be assumed that the version is '1.0.0'.

Since:
6.1
  • Constructor Details

  • Method Details

    • setInputStreamFactory

      public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
      Sets the input stream factory that will be used for creating input streams given source names.
      Specified by:
      setInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Parameters:
      aInputStreamFactory - the input stream factory to be used.
    • getInputStreamFactory

      public ILcdInputStreamFactory getInputStreamFactory()
      Returns the input stream factory that is currently used for creating input streams given source names.
      Specified by:
      getInputStreamFactory in interface ILcdInputStreamFactoryCapable
      Returns:
      the input stream factory that is currently used.
    • decodeStyledLayerDescriptor

      public TLcdSLDStyledLayerDescriptor decodeStyledLayerDescriptor(String aSourceName) throws IOException
      Processes the given XML source document, and returns the feature type style that corresponds the root element. The 'version' attribute of the root element is used to determine the version of the standard that is used.
      Parameters:
      aSourceName - the full path to the file to be decoded, including the file name.
      Returns:
      the feature type style that corresponds the root element.
      Throws:
      IOException - thrown if an error occurs during the read process.