public class TLcdSLDStyledLayerDescriptorDecoder extends Object implements ILcdInputStreamFactoryCapable
Constructor and Description |
---|
TLcdSLDStyledLayerDescriptorDecoder()
Creates a new
TLcdSLDStyledLayerDescriptorDecoder
with a default input stream factory. |
Modifier and Type | Method and Description |
---|---|
TLcdSLDStyledLayerDescriptor |
decodeStyledLayerDescriptor(String aSourceName)
Processes the given XML source document, and returns the feature type style
that corresponds the root element.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the input stream factory that is currently used for creating input streams given source names.
|
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Sets the input stream factory that will be used for creating input streams given source names.
|
public TLcdSLDStyledLayerDescriptorDecoder()
TLcdSLDStyledLayerDescriptorDecoder
with a default input stream factory.public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- the input stream factory to be used.public ILcdInputStreamFactory getInputStreamFactory()
getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
public TLcdSLDStyledLayerDescriptor decodeStyledLayerDescriptor(String aSourceName) throws IOException
aSourceName
- the full path to the file to be decoded, including the
file name.IOException
- thrown if an error occurs during the read process.